Table of Contents

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 OffsetCurves

Inheritance

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

polyline IPolyline2D

The polyline.

distance double

The distance.

options OffsetOptions?

The options; null = SpatialNET.OffsetOptions.Default.

factory IGeometryFactory?

The factory; null = SpatialNET.GeometryFactory.Default.

gridSize double?

The grid size; null = cascade (global default, otherwise automatic).

Returns

IPolyline2D

Exceptions

ArgumentNullException

polyline is null.

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

polygon IPolygon2D

The polygon.

distance double

The distance.

options OffsetOptions?

The options; null = SpatialNET.OffsetOptions.Default.

factory IGeometryFactory?

The factory; null = SpatialNET.GeometryFactory.Default.

gridSize double?

The grid size; null = cascade (global default, otherwise automatic).

Returns

IPolyline2D

Exceptions

ArgumentNullException

polygon is null.

ArgumentOutOfRangeException

Distance not finite or invalid options.