Class GeospatialData
- java.lang.Object
-
- glide.api.models.commands.geospatial.GeospatialData
-
public final class GeospatialData extends java.lang.ObjectRepresents a geographic position defined by longitude and latitude.
The exact limits, as specified byEPSG:900913 / EPSG:3785 / OSGEO:41001are the following:- Valid longitudes are from
-180to180degrees. - Valid latitudes are from
-85.05112878to85.05112878degrees.
- Valid longitudes are from
-
-
Constructor Summary
Constructors Constructor Description GeospatialData(double longitude, double latitude)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetLatitude()The latitude coordinate.doublegetLongitude()The longitude coordinate.java.lang.String[]toArgs()Converts GeospatialData into a String[].
-
-
-
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.
-
-