Table of Contents

Class Buffering

Namespace
SpatialNET
Assembly
SpatialNET.Extensions.dll

Buffer as raw offset + union with SpatialNET.FillRule.Positive (ADR 0006).

public static class Buffering

Inheritance

Inherited Members

Methods

Buffer(IGeometry2D, double, BufferOptions?, IGeometryFactory?, double?)

The buffer: all points within a distance ≤ |distance| (for a negative distance, the area shrunk inwards by |d|). Results are 2D and valid.

public static IPolygon2D Buffer(this IGeometry2D geometry, double distance, BufferOptions? options = null, IGeometryFactory? factory = null, double? gridSize = null)

Parameters

geometry IGeometry2D

The geometry.

distance double

The distance in map units.

options BufferOptions?

The options; null = SpatialNET.BufferOptions.Default.

factory IGeometryFactory?

The factory; null = SpatialNET.GeometryFactory.Default.

gridSize double?

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

Returns

IPolygon2D

Remarks

Polygon with d = 0 → input normalized by even-odd; completely eroded → empty; point/line with d ≤ 0 → empty (except one-sided). Invalid input is interpreted by even-odd.

Exceptions

ArgumentNullException

geometry is null.

ArgumentOutOfRangeException

Distance not finite or invalid options.

NotSupportedException

geometry is not a known geometry kind.