Add retain_all to get_streets() for perimeter

Commit #33 added the option, but only when specifying a point and radius, not a perimeter.
This commit is contained in:
Sandro Covo
2021-09-07 08:43:18 +02:00
parent 560ecf95ca
commit 060affb1e2

View File

@@ -170,6 +170,7 @@ def get_streets(
unary_union(perimeter.geometry).buffer(buffer)
if buffer > 0
else unary_union(perimeter.geometry),
retain_all=retain_all,
custom_filter=custom_filter,
)
streets = ox.project_graph(streets)