XyEnvelope Class

Defines a rectangular region in (X-Y) local coordinates, representing a bounding box for a set of coordinates (a geometry), which can be defined in geographic, projected or local grid coordinates.

It is created with a Cartography object, defining the local grid coordinate system.

It is possible to move the origin of the local grid coordinate system using the MoveGridOrigin(Double, Double), which will also move and update the Cartography object to the new origin.

Definition

Namespace: DHI.Projections
Assembly: DHI.Projections (in DHI.Projections.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class XyEnvelope
Inheritance
Object    XyEnvelope

Constructors

XyEnvelope Create a new XyEnvelope object

Properties

Cartography Cartography object currently used by object
XMax Returns the Envelopes maximum x-value. min x > max x indicates that this is a null Envelope.
XMin Returns the Envelopes minimum x-value. min x > max x indicates that this is a null Envelope.
YMax Returns the Envelopes maximum y-value. min y > max y indicates that this is a null Envelope.
YMin Returns the Envelopes minimum y-value. min y > max y indicates that this is a null Envelope.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IncludeGeo Include the Geographic coordinate (lon,lat) in the envelope
IncludeProj Include the projection coordinate (east,north) in the envelope
IncludeXy Include the local grid coordinate (x,y) in the envelope
MoveGridOrigin Move the origin of the local grid (x,y) coordinate system to the specified (x,y) coordinates, i.e. the specified (x,y) coordinate will match (0,0) in the new local grid coordinate system.

Also the Cartography object is updated to new origin

ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also