Class Buffering
- Namespace
- SpatialNET
- Assembly
- SpatialNET.Extensions.dll
Buffer as raw offset + union with SpatialNET.FillRule.Positive (ADR 0006).
public static class BufferingInheritance
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
geometryIGeometry2D-
The geometry.
distancedouble-
The distance in map units.
optionsBufferOptions?-
The options;
null= SpatialNET.BufferOptions.Default. factoryIGeometryFactory?-
The factory;
null= SpatialNET.GeometryFactory.Default. gridSizedouble?-
The grid size;
null= cascade (global default, otherwise automatic).
Returns
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
-
geometryisnull. - ArgumentOutOfRangeException
-
Distance not finite or invalid options.
- NotSupportedException
-
geometryis not a known geometry kind.