Add truncate_by_edge

This commit is contained in:
JonFreer
2021-09-07 19:25:19 +01:00
parent 560ecf95ca
commit fd4ea4bcaa

View File

@@ -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