momepy.snap_street_network_edge

momepy.snap_street_network_edge(edges, buildings, tolerance_street, tessellation=None, tolerance_edge=None, edge=None)[source]

Fix street network before performing blocks()

Extends unjoined ends of street segments to join with other segmets or tessellation boundary.

Parameters
edgesGeoDataFrame

GeoDataFrame containing street network

buildingsGeoDataFrame

GeoDataFrame containing building footprints

tolerance_streetfloat

tolerance in snapping to street network (by how much could be street segment extended).

tessellationGeoDataFrame (default None)

GeoDataFrame containing morphological tessellation. If edge is not passed it will be used as edge.

tolerance_edgefloat (default None)

tolerance in snapping to edge of tessellated area (by how much could be street segment extended).

edgePolygon

edge of area covered by morphological tessellation (same as limit in momepy.tessellation())

Returns
GeoDataFrame

GeoDataFrame of extended street network.