Method ConsecutivePolylines
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
ConsecutivePolylines(IEnumerable<GeoPolyline2>)
Rejoins the pieces of a classified run that end where the next one begins, using the default tolerance.
public static GeoPolyline2[] ConsecutivePolylines(IEnumerable<GeoPolyline2> polylines)
Parameters
polylinesIEnumerable<GeoPolyline2>
Returns
ConsecutivePolylines(IEnumerable<GeoPolyline2>, Tolerance)
Rejoins the pieces of a classified run that end where the next one begins.
public static GeoPolyline2[] ConsecutivePolylines(IEnumerable<GeoPolyline2> polylines, Tolerance tolerance)
Parameters
polylinesIEnumerable<GeoPolyline2>The pieces landing on one side, in order along the subject.
toleranceToleranceThe tolerance.
Returns
- GeoPolyline2[]
One piece per unbroken stretch, in order along the subject.
Remarks
The counterpart of ConsecutiveLines(IEnumerable<GeoLine2>, Tolerance) for a subject that can bend. The walk is the same; what differs is that whether two pieces join at all is left to Polylines(GeoPolyline2, GeoPolyline2, Tolerance), which returns null when they do not.
Exceptions
- ArgumentNullException
Thrown when
polylinesis null.