Class Bounds

All Implemented Interfaces:
Emptiable, org.opengis.geometry.Envelope, org.opengis.metadata.extent.Extent, org.opengis.metadata.extent.GeographicBoundingBox, org.opengis.metadata.extent.GeographicExtent

public final class Bounds extends GeographicEnvelope
Geographic bounding box encoded in a GPX file.
Since:
0.8
Version:
0.8
  • Field Details

    • westBoundLongitude

      public double westBoundLongitude
      The western-most coordinate of the limit of the dataset extent. The value is expressed in longitude in decimal degrees (positive east).
    • eastBoundLongitude

      public double eastBoundLongitude
      The eastern-most coordinate of the limit of the dataset extent. The value is expressed in longitude in decimal degrees (positive east).
    • southBoundLatitude

      public double southBoundLatitude
      The southern-most coordinate of the limit of the dataset extent. The value is expressed in latitude in decimal degrees (positive north).
    • northBoundLatitude

      public double northBoundLatitude
      The 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

      public static Bounds castOrCopy(org.opengis.metadata.extent.GeographicBoundingBox box)
      Returns the given ISO 19115 metadata as a Bounds instance. This method copies the data only if needed.
      Parameters:
      box - the ISO 19115 metadata, or null.
      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°.