Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'MultiPolygon' object has no attribute 'exterior' #6

Open
ChrisPalmerNZ opened this issue Sep 28, 2019 · 0 comments
Open

Comments

@ChrisPalmerNZ
Copy link

Same sort of error as #4

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-17-4eb7221da34b> in <module>
      3 
      4 # Query for the highways within the `sg_boundary` we obtained earlier from the sg_admin.
----> 5 df2 = geopandas_osm.osm.query_osm('way', sg_boundary, recurse='down', tags='highway')
      6 
      7 # This gives us lots of columns we don't need, so we'll isolate it to the three we do need

G:\Anaconda3\lib\site-packages\geopandas_osm\osm.py in query_osm(typ, bbox, recurse, tags, raw, meta, **kwargs)
     87 
     88     """
---> 89     url = _build_url(typ, bbox, recurse, tags, meta)
     90 
     91     # TODO: Raise on non-200 (or 400-599)

G:\Anaconda3\lib\site-packages\geopandas_osm\osm.py in _build_url(typ, bbox, recurse, tags, meta)
    128             #','.join(str(b) for b in (bbox[1], bbox[0], bbox[3], bbox[2])))
    129         bboxstr = '(poly:"{}")'.format(
--> 130             ' '.join('{c[1]} {c[0]}'.format(c=c) for c in bbox.exterior.coords))
    131 
    132     if meta:

AttributeError: 'MultiPolygon' object has no attribute 'exterior'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant