neatnet.close_gaps#
- neatnet.close_gaps(gdf, tolerance)[source]#
Close gaps in LineString geometry where it should be contiguous. Snaps both lines to a centroid of a gap in between.
- Parameters:
- gdf
geopandas.GeoSeries
|geopandas.GeoDataFrame
LineString representations of a network.
- tolerance
float
Nodes within
tolerance
will be snapped together.
- gdf
- Returns: