momepy.remove_false_nodes#

momepy.remove_false_nodes(gdf)[source]#

Clean topology of existing LineString geometry by removal of nodes of degree 2.

Parameters
gdfGeoDataFrame, GeoSeries, array of pygeos geometries

(Multi)LineString data of street network

Returns
gdfGeoDataFrame, GeoSeries