Class Envelopes
- Namespace
- SpatialNET
- Assembly
- SpatialNET.Extensions.dll
Conversions of an SpatialNET.Envelope2D to a geometry (ADR 0022).
public static class EnvelopesInheritance
Inherited Members
Methods
ToPolygon(Envelope2D, IGeometryFactory?)
The envelope as a rectangular polygon (counter-clockwise, closed). An empty envelope, or one without area (zero width or height), gives an empty polygon.
public static IPolygon2D ToPolygon(this Envelope2D envelope, IGeometryFactory? factory = null)Parameters
envelopeEnvelope2D-
The envelope.
factoryIGeometryFactory?-
The factory;
null= SpatialNET.GeometryFactory.Default.
Returns
Exceptions
- ArgumentOutOfRangeException
-
The envelope is invalid (not finite, or Min greater than Max, other than SpatialNET.Envelope2D.Empty).
- InvalidOperationException
-
No factory available.