neatnet.induce_nodes

Contents

neatnet.induce_nodes#

neatnet.induce_nodes(roads, eps=0.0001)[source]#

Adding potentially missing nodes on intersections of individual LineString endpoints with the remaining network. The idea behind is that if a line ends on an intersection with another, there should be a node on both of them.

Parameters:
roadsgeopandas.GeoDataFrame

Input LineString geometries.

epsfloat = 1e-4

Tolerance epsilon for point snapping passed into nodes.split().

Returns:
geopandas.GeoDataFrame

Updated roads with (potentially) added nodes.