Geographic position of the dataset. This is only an approximate so specifying the coordinate
reference system is unnecessary. The CRS shall be geographic with Greenwich prime meridian, but
the datum doesn't need to be WGS84.

GeographicBoundingBoxImpl

Constructs a geographic bounding box from the specified envelope. If the envelope contains a
CRS, then the bounding box may be projected to a geographic one. Otherwise, the envelope is
assumed already in appropriate CRS.

When coordinate transformation is required, the target geographic CRS is not necessarly
WGS84. This method
preserves the same ellipsoid than in the
envelope CRS when possible. This is because geographic bounding box are only approximative
and the ISO specification do not mandates a particular CRS, so we avoid transformations that
are not strictly necessary.

Note: This constructor is available only if the referencing module is on
the classpath.

Parameters:

envelope - The envelope to use for initializing this geographic bounding box.

GeographicBoundingBoxImpl

Creates a geographic bounding box initialized to the specified values.

Caution: Arguments are expected in the same order than they appear in the
ISO 19115 specification. This is different than the order commonly found in Java world, which
is rather (xmin, ymin,
xmax, ymax).

Parameters:

westBoundLongitude - The minimal x value.

eastBoundLongitude - The maximal x value.

southBoundLatitude - The minimal y value.

northBoundLatitude - The maximal y value.

Method Detail

getWestBoundLongitude

public double getWestBoundLongitude()

Returns the western-most coordinate of the limit of the dataset extent. The value is
expressed in longitude in decimal degrees (positive east).

setBounds

Caution: Arguments are expected in the same order than they appear in the
ISO 19115 specification. This is different than the order commonly found in Java world, which
is rather (xmin, ymin,
xmax, ymax).

add

Adds a geographic bounding box to this box. If the inclusion
status is the same for this box and the box to be added, then the resulting bounding box is
the union of the two boxes. If the inclusion status are opposite
(exclusion), then this method attempt to exclude some area of specified box from
this box. The resulting bounding box is smaller if the exclusion can be performed without
ambiguity.