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:
- roads
geopandas.GeoDataFrame
Input LineString geometries.
- eps
float
= 1e-4 Tolerance epsilon for point snapping passed into
nodes.split()
.
- roads
- Returns:
geopandas.GeoDataFrame
Updated
roads
with (potentially) added nodes.