Show:

A 2D bounding box. For 3D envelopes, see gdal.Envelope3D.

(Pure-javascript implementation of OGREnvelope)

Constructor

gdal.Envelope
(
  • bounds
)

Defined in lib/envelope.js:2

Parameters:

  • [bounds] Object optional

    An object containing minX, maxX, minY, and maxY values.

Methods

contains
(
  • envelope
)
Boolean

Defined in lib/envelope.js:107

Determines if the provided envelope is wholly-contained by the current envelope.

Parameters:

Returns:

Boolean
intersect
(
  • envelope
)
Void

Defined in lib/envelope.js:82

Updates the envelope to the intersection of the two envelopes.

Parameters:

Returns:

Void
intersects
(
  • envelope
)
Boolean

Defined in lib/envelope.js:70

Determines if the provided envelope touches it.

Parameters:

Returns:

Boolean
isEmpty () Boolean

Defined in lib/envelope.js:25

Determines if the envelope has not been set yet.

Returns:

Boolean
merge
(
  • envelope
)
Void

Defined in lib/envelope.js:35

Unions the provided envelope with the current envelope.

Parameters:

Returns:

Void
toPolygon () gdal.Polygon

Defined in lib/envelope.js:119

Converts the envelope to a polygon.

Returns: