Package de.digitalcollections.model.geo
Class CoordinateLocation
java.lang.Object
de.digitalcollections.model.geo.CoordinateLocation
Geocoordinates of a subject. For Earth, please note that only WGS84 coordinating system is
supported at the moment. see https://de.wikipedia.org/wiki/Geographische_Koordinaten,
https://de.wikipedia.org/wiki/World_Geodetic_System_1984
-
Constructor Summary
ConstructorDescriptionCoordinateLocation
(Double latitude, Double longitude, Double altitude, Double precision) -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
double
double
double
see https://www.wikidata.org/wiki/Special:EntityData/Q513.json, https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Geographical_coordinates#Precision_guidelinesint
hashCode()
void
setAltitude
(double altitude) void
setLatitude
(double latitude) void
setLongitude
(double longitude) void
setPrecision
(double precision) toString()
-
Constructor Details
-
CoordinateLocation
public CoordinateLocation() -
CoordinateLocation
-
-
Method Details
-
equals
-
getAltitude
public double getAltitude()- Returns:
- altitude in meters
-
getLatitude
public double getLatitude()- Returns:
- latitude in degrees: -90° (Southpole) - 0° (Aequator) - 90° (Northpole)
-
getLongitude
public double getLongitude()- Returns:
- longitude in degress: 0° (Greenwich, England), East: positve (max. 180°), West: negative (max 180°)
-
getPrecision
public double getPrecision()see https://www.wikidata.org/wiki/Special:EntityData/Q513.json, https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Geographical_coordinates#Precision_guidelines- Returns:
- precision of coordinates
-
hashCode
public int hashCode() -
setAltitude
public void setAltitude(double altitude) -
setLatitude
public void setLatitude(double latitude) -
setLongitude
public void setLongitude(double longitude) -
setPrecision
public void setPrecision(double precision) -
toString
-