Use retain_all when fetching graph

This commit is contained in:
HalFrgrd 2024-07-06 14:16:02 +01:00 committed by GitHub
parent 2c0dca9b51
commit 68323c567e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,6 +157,7 @@ def get_gdf(
if layer in ["streets", "railway", "waterway"]:
graph = ox.graph_from_polygon(
bbox,
retain_all=True,
custom_filter=custom_filter,
truncate_by_edge=True,
)