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:136

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

Parameters:

  • envelope Envelope

Returns:

Boolean
intersect
(
  • envelope
)
Void

Defined in lib/envelope.js:111

Updates the envelope to the intersection of the two envelopes.

Parameters:

  • envelope Envelope

Returns:

Void
intersects
(
  • envelope
)
Boolean

Defined in lib/envelope.js:95

Determines if the provided envelope touches it.

Parameters:

  • envelope Envelope

Returns:

Boolean
isEmpty () Boolean

Defined in lib/envelope.js:41

Determines if the envelope has not been set yet.

Returns:

Boolean
merge
(
  • envelope
)
Void

Defined in lib/envelope.js:51

Unions the provided envelope with the current envelope.

Parameters:

  • envelope Envelope

Returns:

Void
merge
(
  • x
  • y
)
Void

Defined in lib/envelope.js:59

Unions the provided envelope with the x/y coordinates provided.

Parameters:

  • x Number
  • y Number

Returns:

Void
toPolygon () Polygon

Defined in lib/envelope.js:152

Converts the envelope to a polygon.

Returns:

Polygon

Properties

maxX

Number

Defined in lib/envelope.js:16

maxY

Number

Defined in lib/envelope.js:24

minX

Number

Defined in lib/envelope.js:12

minY

Number

Defined in lib/envelope.js:20