Class OffsetCurves
- Namespace
- SpatialNET
- Assembly
- SpatialNET.Extensions.dll
Offset curves following JTS OffsetCurve (ADR 0006): buffer with flat ends, raw offset of the side, matched against the buffer boundary. The result is guaranteed to lie on the buffer boundary and, at narrow spots, is a polyline with several paths. Z and M are interpolated on the nearest source segment.
public static class OffsetCurvesInheritance
Inherited Members
Methods
OffsetCurve(IPolyline2D, double, OffsetOptions?, IGeometryFactory?, double?)
The offset curve of a polyline; positive distance to the left, negative to the right of the direction of travel.
public static IPolyline2D OffsetCurve(this IPolyline2D polyline, double distance, OffsetOptions? options = null, IGeometryFactory? factory = null, double? gridSize = null)Parameters
polylineIPolyline2D-
The polyline.
distancedouble-
The distance.
optionsOffsetOptions?-
The options;
null= SpatialNET.OffsetOptions.Default. factoryIGeometryFactory?-
The factory;
null= SpatialNET.GeometryFactory.Default. gridSizedouble?-
The grid size;
null= cascade (global default, otherwise automatic).
Returns
Exceptions
- ArgumentNullException
-
polylineisnull. - ArgumentOutOfRangeException
-
Distance not finite or invalid options.
OffsetCurve(IPolygon2D, double, OffsetOptions?, IGeometryFactory?, double?)
The offset curve of a polygon: the boundary of Buffer(distance) as closed paths – positive outside,
negative inside, regardless of ring orientation.
public static IPolyline2D OffsetCurve(this IPolygon2D polygon, double distance, OffsetOptions? options = null, IGeometryFactory? factory = null, double? gridSize = null)Parameters
polygonIPolygon2D-
The polygon.
distancedouble-
The distance.
optionsOffsetOptions?-
The options;
null= SpatialNET.OffsetOptions.Default. factoryIGeometryFactory?-
The factory;
null= SpatialNET.GeometryFactory.Default. gridSizedouble?-
The grid size;
null= cascade (global default, otherwise automatic).
Returns
Exceptions
- ArgumentNullException
-
polygonisnull. - ArgumentOutOfRangeException
-
Distance not finite or invalid options.