Experimental

Snaps nearby polyline endpoints to a shared location within a tolerance.

vector gis linework legacy-port

Parameters

NameDescriptionRequiredDefault
inputInput polyline vector layer.Requiredinput_lines.shp
snap_toleranceEndpoint snapping tolerance in map units.Optional2.220446049250313e-16
outputOutput snapped polyline vector path.Required

Examples

Snaps adjacent line endpoints by a tolerance threshold.

wbe.snap_endnodes(input='input_lines.shp', output='snapped_endnodes.shp', snap_tolerance=2.220446049250313e-16)

Project Links

WbW Homepage User Manual Learn More