| org.geotools.metadata.iso.extent.GeographicExtentImpl org.geotools.metadata.iso.extent.GeographicBoundingBoxImpl
GeographicBoundingBoxImpl | public class GeographicBoundingBoxImpl extends GeographicExtentImpl implements GeographicBoundingBox(Code) | | Geographic position of the dataset. This is only an approximate
so specifying the co-ordinate reference system is unnecessary.
since: 2.1 version: $Id: GeographicBoundingBoxImpl.java 29091 2008-02-05 19:27:31Z desruisseaux $ author: Martin Desruisseaux author: Touraïvane |
Field Summary | |
final public static GeographicBoundingBox | WORLD A bounding box ranging from 180°W to 180°E and 90°S to 90°N. |
Constructor Summary | |
public | GeographicBoundingBoxImpl() Constructs an initially empty geographic bounding box. | public | GeographicBoundingBoxImpl(GeographicBoundingBox box) Constructs a geographic bounding box initialized to the same values than the specified one.
Caution: Arguments are expected in the same order than they appear in the
ISO 19115 specification. | public | GeographicBoundingBoxImpl(Envelope envelope) Constructs a geographic bounding box from the specified envelope. | public | GeographicBoundingBoxImpl(Rectangle2D bounds) Constructs a geographic bounding box from the specified rectangle. | public | GeographicBoundingBoxImpl(double westBoundLongitude, double eastBoundLongitude, double southBoundLatitude, double northBoundLatitude) Creates a geographic bounding box initialized to the specified values. |
Method Summary | |
public synchronized void | add(GeographicBoundingBox box) Adds a geographic bounding box to this box. | public synchronized boolean | equals(Object object) Compares this geographic bounding box with the specified object for equality. | public double | getEastBoundLongitude() Returns the eastern-most coordinate of the limit of the
dataset extent. | public double | getNorthBoundLatitude() Returns the northern-most, coordinate of the limit of the
dataset extent. | public double | getSouthBoundLatitude() Returns the southern-most coordinate of the limit of the
dataset extent. | public double | getWestBoundLongitude() Returns the western-most coordinate of the limit of the
dataset extent. | public synchronized int | hashCode() Returns a hash code value for this extent. | public synchronized void | setEastBoundLongitude(double newValue) Set the eastern-most coordinate of the limit of the
dataset extent. | public synchronized void | setNorthBoundLatitude(double newValue) Set the northern-most, coordinate of the limit of the
dataset extent. | public synchronized void | setSouthBoundLatitude(double newValue) Set the southern-most coordinate of the limit of the
dataset extent. | public synchronized void | setWestBoundLongitude(double newValue) Set the western-most coordinate of the limit of the
dataset extent. | public String | toString() Returns a string representation of this extent using a default angle pattern. | public static String | toString(GeographicBoundingBox box, String pattern, Locale locale) Returns a string representation of the specified extent using the specified angle pattern
and locale. |
WORLD | final public static GeographicBoundingBox WORLD(Code) | | A bounding box ranging from 180°W to 180°E and 90°S to 90°N.
since: 2.2 |
GeographicBoundingBoxImpl | public GeographicBoundingBoxImpl()(Code) | | Constructs an initially empty geographic bounding box.
|
GeographicBoundingBoxImpl | public GeographicBoundingBoxImpl(GeographicBoundingBox box)(Code) | | Constructs a geographic bounding box initialized to the same values than the specified one.
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).
since: 2.2 |
GeographicBoundingBoxImpl | public GeographicBoundingBoxImpl(Envelope envelope) throws TransformException(Code) | | Constructs a geographic bounding box from the specified envelope. If the envelope contains
a CRS, then the bounding box will be projected to the
CRS. Otherwise, the envelope is assumed already in WGS 84 CRS.
Note: This method is available only if the referencing module is
on the classpath.
Parameters: envelope - The envelope to use for initializing this geographic bounding box. throws: UnsupportedOperationException - if the referencing module is not on the classpath. throws: TransformException - if the envelope can't be transformed. since: 2.2 |
GeographicBoundingBoxImpl | public GeographicBoundingBoxImpl(Rectangle2D bounds)(Code) | | Constructs a geographic bounding box from the specified rectangle.
The rectangle is assumed in
CRS.
|
GeographicBoundingBoxImpl | public GeographicBoundingBoxImpl(double westBoundLongitude, double eastBoundLongitude, double southBoundLatitude, double northBoundLatitude)(Code) | | Creates a geographic bounding box initialized to the specified values.
|
add | public synchronized void add(GeographicBoundingBox box)(Code) | | Adds a geographic bounding box to this box. If the
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
status are
opposite (exclusion), then this method attempt to exclude the some area of
specified box from this box. The resulting bounding box is smaller if the exclusion can
be performed without ambiguity.
since: 2.2 |
equals | public synchronized boolean equals(Object object)(Code) | | Compares this geographic bounding box with the specified object for equality.
|
getEastBoundLongitude | public double getEastBoundLongitude()(Code) | | Returns the eastern-most coordinate of the limit of the
dataset extent. The value is expressed in longitude in
decimal degrees (positive east).
The eastern-most longitude between -180 and +180°. |
getNorthBoundLatitude | public double getNorthBoundLatitude()(Code) | | Returns the northern-most, coordinate of the limit of the
dataset extent. The value is expressed in latitude in
decimal degrees (positive north).
The northern-most latitude between -90 and +90°. |
getSouthBoundLatitude | public double getSouthBoundLatitude()(Code) | | Returns the southern-most coordinate of the limit of the
dataset extent. The value is expressed in latitude in
decimal degrees (positive north).
The southern-most latitude between -90 and +90°. |
getWestBoundLongitude | public double getWestBoundLongitude()(Code) | | Returns the western-most coordinate of the limit of the
dataset extent. The value is expressed in longitude in
decimal degrees (positive east).
The western-most longitude between -180 and +180°. |
hashCode | public synchronized int hashCode()(Code) | | Returns a hash code value for this extent.
|
setEastBoundLongitude | public synchronized void setEastBoundLongitude(double newValue)(Code) | | Set the eastern-most coordinate of the limit of the
dataset extent. The value is expressed in longitude in
decimal degrees (positive east).
|
setNorthBoundLatitude | public synchronized void setNorthBoundLatitude(double newValue)(Code) | | Set the northern-most, coordinate of the limit of the
dataset extent. The value is expressed in latitude in
decimal degrees (positive north).
|
setSouthBoundLatitude | public synchronized void setSouthBoundLatitude(double newValue)(Code) | | Set the southern-most coordinate of the limit of the
dataset extent. The value is expressed in latitude in
decimal degrees (positive north).
|
setWestBoundLongitude | public synchronized void setWestBoundLongitude(double newValue)(Code) | | Set the western-most coordinate of the limit of the
dataset extent. The value is expressed in longitude in
decimal degrees (positive east).
|
toString | public String toString()(Code) | | Returns a string representation of this extent using a default angle pattern.
|
toString | public static String toString(GeographicBoundingBox box, String pattern, Locale locale)(Code) | | Returns a string representation of the specified extent using the specified angle pattern
and locale. See
AngleFormat for a description of angle patterns.
Parameters: box - The bounding box to format. Parameters: pattern - The angle pattern (e.g. DD°MM'SS.s" . Parameters: locale - The locale, or null for the default one. since: 2.2 |
|
|