Replies: 1 comment 1 reply
-
|
pip install - U overturemaps |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Professor,
I recently upgraded the geoai library to the latest version (0.6.0), and I’m encountering an issue when retrieving building footprint data in GeoJSON format.
Am I doing something wrong, or is there something I might be missing?
AttributeError Traceback (most recent call last)
Cell In[5], line 2
1 # Download buildings
----> 2 data_file = download_overture_buildings(
3 bbox=bbox,
4 output="buildings.geojson",
5 output_format="geojson",
6 data_type="buildings",
7 verbose=True,
8 )
File /opt/anaconda3/envs/geo/lib/python3.12/site-packages/geoai/download.py:283, in download_overture_buildings(bbox, output, overture_type, **kwargs)
266 def download_overture_buildings(
267 bbox: Tuple[float, float, float, float],
268 output: str,
269 overture_type: str = "building",
270 **kwargs: Any,
271 ) -> str:
272 """Download building data from Overture Maps for a given bounding box using the overturemaps CLI tool.
273
274 Args:
(...) 280 Path to the output file.
281 """
--> 283 return get_overture_data(
284 overture_type=overture_type, bbox=bbox, output=output, **kwargs
285 )
File /opt/anaconda3/envs/geo/lib/python3.12/site-packages/geoai/download.py:320, in get_overture_data(overture_type, bbox, columns, output, **kwargs)
317 except ImportError:
318 raise ImportError("The overturemaps package is required to use this function")
--> 320 gdf = core.geodataframe(overture_type, bbox=bbox)
321 if columns is not None:
322 gdf = gdf[columns]
AttributeError: module 'overturemaps.core' has no attribute 'geodataframe'
Beta Was this translation helpful? Give feedback.
All reactions