momepy.network_false_nodes

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

Check topology of street network and eliminate nodes of degree 2 by joining affected edges.

Parameters
gdfGeoDataFrame, GeoSeries

GeoDataFrame or GeoSeries containing edge representation of street network.

tolerancefloat

nodes within a tolerance are seen as identical (floating point precision fix)

precisionint

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

verbosebool

if True, shows progress bars in loops

Returns
gdfGeoDataFrame, GeoSeries