We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfa0818 commit 816b1e6Copy full SHA for 816b1e6
mapswipe_workers/mapswipe_workers/utils/process_mapillary.py
@@ -229,6 +229,8 @@ def get_image_metadata(
229
):
230
aoi_polygon = geojson_to_polygon(aoi_geojson)
231
downloaded_metadata = coordinate_download(aoi_polygon, level, attempt_limit)
232
+ if downloaded_metadata.isna().all().all() or downloaded_metadata.empty:
233
+ raise ValueError("No Mapillary Features in the AoI.")
234
downloaded_metadata = downloaded_metadata[
235
downloaded_metadata["geometry"].apply(lambda geom: isinstance(geom, Point))
236
]
0 commit comments