mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-09-01 18:32:45 +02:00
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:
@@ -170,6 +170,7 @@ def get_streets(
|
|||||||
unary_union(perimeter.geometry).buffer(buffer)
|
unary_union(perimeter.geometry).buffer(buffer)
|
||||||
if buffer > 0
|
if buffer > 0
|
||||||
else unary_union(perimeter.geometry),
|
else unary_union(perimeter.geometry),
|
||||||
|
retain_all=retain_all,
|
||||||
custom_filter=custom_filter,
|
custom_filter=custom_filter,
|
||||||
)
|
)
|
||||||
streets = ox.project_graph(streets)
|
streets = ox.project_graph(streets)
|
||||||
|
Reference in New Issue
Block a user