From 68323c567e145e93f0690c49ff372ea02e36794b Mon Sep 17 00:00:00 2001 From: HalFrgrd <4559349+HalFrgrd@users.noreply.github.com> Date: Sat, 6 Jul 2024 14:16:02 +0100 Subject: [PATCH] Use `retain_all` when fetching graph --- prettymaps/fetch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/prettymaps/fetch.py b/prettymaps/fetch.py index 3fb7df5..9d89521 100755 --- a/prettymaps/fetch.py +++ b/prettymaps/fetch.py @@ -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, )