momepy.network_false_nodes

momepy.network_false_nodes(gdf, tolerance=0.1, precision=3)[source]

Check topology of street network and eliminate nodes of degree 2 by joining affected edges. Attributes are not preserved.

Parameters
gdfGeoDataFrame, GeoSeries

GeoDataFrame or GeoSeries containg edge representation of street network.

tolerancefloat

nodes wihtin tolearance are seen as identical (floating point precision fix)

precisionint

rounding parameter in estimating uniqueness of two points based on their coordinates

Returns
gdfGeoDataFrame, GeoSeries