Skip to content

Commit 6a1d15e

Browse files
committed
feat: use spatial filter on downloaded images
1 parent 98f82c9 commit 6a1d15e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mapswipe_workers/mapswipe_workers/utils/process_mapillary.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ def coordinate_download(
137137
if col not in downloaded_metadata.columns:
138138
downloaded_metadata[col] = None
139139

140+
downloaded_metadata = downloaded_metadata[
141+
downloaded_metadata['geometry'].apply(lambda point: point.within(polygon))
142+
]
143+
140144
return downloaded_metadata, failed_tiles
141145

142146

0 commit comments

Comments
 (0)