BoundingBox
Construct a 2D BoundingBox from west, south, east, and north coordinates.
Parameters
The western longitude boundary.
The southern latitude boundary.
The eastern longitude boundary.
The northern latitude boundary.
Construct a 3D BoundingBox from west, south, east, north coordinates with altitude bounds.
Parameters
The western longitude boundary.
The southern latitude boundary.
The minimum altitude boundary.
The eastern longitude boundary.
The northern latitude boundary.
The maximum altitude boundary.
Construct a BoundingBox from two Position objects that represent the southwest corner and northeast corners.
If one corner has more elements than the other, the extra elements are ignored.
Parameters
Construct a BoundingBox with more than the standard three axes (longitude
, latitude
, altitude
) per corner.
As noted in RFC 7946 Section 3.1.1, such additional axes are discouraged but allowed by the GeoJSON specification:
Implementations SHOULD NOT extend positions beyond three elements because the semantics of extra elements are unspecified and ambiguous. Historically, some implementations have used a fourth element to carry a linear referencing measure (sometimes denoted as "M") or a numerical timestamp, but in most situations a parser will not be able to properly interpret these values.
Parameters
The western longitude boundary.
The southern latitude boundary.
The minimum altitude boundary.
The eastern longitude boundary.
The northern latitude boundary.
The maximum altitude boundary.
Additional coordinate elements beyond the standard three axes per corner (must contain an even number of elements).
Throws
if additionalElements contains an odd number of elements.