Class Bounds
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.geometry.AbstractEnvelope
org.apache.sis.internal.storage.xml.GeographicEnvelope
org.apache.sis.internal.storage.gpx.Bounds
- All Implemented Interfaces:
Emptiable
,org.opengis.geometry.Envelope
,org.opengis.metadata.extent.Extent
,org.opengis.metadata.extent.GeographicBoundingBox
,org.opengis.metadata.extent.GeographicExtent
Geographic bounding box encoded in a GPX file.
- Since:
- 0.8
- Version:
- 0.8
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
The eastern-most coordinate of the limit of the dataset extent.double
The northern-most, coordinate of the limit of the dataset extent.double
The southern-most coordinate of the limit of the dataset extent.double
The western-most coordinate of the limit of the dataset extent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Bounds
castOrCopy
(org.opengis.metadata.extent.GeographicBoundingBox box) Returns the given ISO 19115 metadata as aBounds
instance.double
Returns the eastern-most coordinate of the limit of the dataset extent.double
Returns the northern-most, coordinate of the limit of the dataset extent.double
Returns the southern-most coordinate of the limit of the dataset extent.double
Returns the western-most coordinate of the limit of the dataset extent.Methods inherited from class org.apache.sis.internal.storage.xml.GeographicEnvelope
getCoordinateReferenceSystem, getDescription, getDimension, getGeographicElements, getInclusion, getLower, getTemporalElements, getUpper, getVerticalElements
Methods inherited from class org.apache.sis.geometry.AbstractEnvelope
castOrCopy, contains, contains, contains, equals, equals, formatTo, getLowerCorner, getMaximum, getMedian, getMedian, getMinimum, getSpan, getSpan, getTimeRange, getUpperCorner, hashCode, intersects, intersects, isAllNaN, isEmpty, toSimpleEnvelopes, toString
Methods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toWKT
-
Field Details
-
westBoundLongitude
public double westBoundLongitudeThe western-most coordinate of the limit of the dataset extent. The value is expressed in longitude in decimal degrees (positive east). -
eastBoundLongitude
public double eastBoundLongitudeThe eastern-most coordinate of the limit of the dataset extent. The value is expressed in longitude in decimal degrees (positive east). -
southBoundLatitude
public double southBoundLatitudeThe southern-most coordinate of the limit of the dataset extent. The value is expressed in latitude in decimal degrees (positive north). -
northBoundLatitude
public double northBoundLatitudeThe northern-most, coordinate of the limit of the dataset extent. The value is expressed in latitude in decimal degrees (positive north).
-
-
Constructor Details
-
Bounds
public Bounds()Creates an initially empty bounds. -
Bounds
private Bounds(org.opengis.metadata.extent.GeographicBoundingBox box) Copies properties from the given ISO 19115 metadata.
-
-
Method Details
-
castOrCopy
Returns the given ISO 19115 metadata as aBounds
instance. This method copies the data only if needed.- Parameters:
box
- the ISO 19115 metadata, ornull
.- Returns:
- the GPX metadata, or
null
.
-
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).- Returns:
- the western-most longitude between -180 and +180°.
-
getEastBoundLongitude
public double getEastBoundLongitude()Returns the eastern-most coordinate of the limit of the dataset extent. The value is expressed in longitude in decimal degrees (positive east).- Returns:
- the eastern-most longitude between -180 and +180°.
-
getSouthBoundLatitude
public double getSouthBoundLatitude()Returns the southern-most coordinate of the limit of the dataset extent. The value is expressed in latitude in decimal degrees (positive north).- Returns:
- the southern-most latitude between -90 and +90°.
-
getNorthBoundLatitude
public double getNorthBoundLatitude()Returns the northern-most, coordinate of the limit of the dataset extent. The value is expressed in latitude in decimal degrees (positive north).- Returns:
- the northern-most latitude between -90 and +90°.
-