mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-08-29 17:19:57 +02:00
Add truncate_by_edge
This commit is contained in:
@@ -158,6 +158,7 @@ def get_streets(
|
|||||||
retain_all=False,
|
retain_all=False,
|
||||||
circle=True,
|
circle=True,
|
||||||
dilate=0,
|
dilate=0,
|
||||||
|
truncate_by_edge=True
|
||||||
):
|
):
|
||||||
|
|
||||||
if layer == "streets":
|
if layer == "streets":
|
||||||
@@ -181,6 +182,7 @@ def get_streets(
|
|||||||
point,
|
point,
|
||||||
dist=radius + dilate + buffer,
|
dist=radius + dilate + buffer,
|
||||||
retain_all=retain_all,
|
retain_all=retain_all,
|
||||||
|
truncate_by_edge = truncate_by_edge,
|
||||||
custom_filter=custom_filter,
|
custom_filter=custom_filter,
|
||||||
)
|
)
|
||||||
crs = ox.graph_to_gdfs(streets, nodes=False).crs
|
crs = ox.graph_to_gdfs(streets, nodes=False).crs
|
||||||
|
Reference in New Issue
Block a user