Table of Contents

Class Envelopes

Namespace
SpatialNET
Assembly
SpatialNET.Extensions.dll

Conversions of an SpatialNET.Envelope2D to a geometry (ADR 0022).

public static class Envelopes

Inheritance

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

envelope Envelope2D

The envelope.

factory IGeometryFactory?

The factory; null = SpatialNET.GeometryFactory.Default.

Returns

IPolygon2D

Exceptions

ArgumentOutOfRangeException

The envelope is invalid (not finite, or Min greater than Max, other than SpatialNET.Envelope2D.Empty).

InvalidOperationException

No factory available.