Class GeospatialData


  • public final class GeospatialData
    extends java.lang.Object
    Represents a geographic position defined by longitude and latitude.
    The exact limits, as specified by EPSG:900913 / EPSG:3785 / OSGEO:41001 are the following:
    • Valid longitudes are from -180 to 180 degrees.
    • Valid latitudes are from -85.05112878 to 85.05112878 degrees.
    • Constructor Summary

      Constructors 
      Constructor Description
      GeospatialData​(double longitude, double latitude)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getLatitude()
      The latitude coordinate.
      double getLongitude()
      The longitude coordinate.
      java.lang.String[] toArgs()
      Converts GeospatialData into a String[].
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeospatialData

        public GeospatialData​(double longitude,
                              double latitude)
    • Method Detail

      • toArgs

        public java.lang.String[] toArgs()
        Converts GeospatialData into a String[].
        Returns:
        String[] An array containing the longtitue and the latitue of the position.
      • getLongitude

        public double getLongitude()
        The longitude coordinate.
      • getLatitude

        public double getLatitude()
        The latitude coordinate.