Package org.mycore.common
Class MCRGeoUtilities
java.lang.Object
org.mycore.common.MCRGeoUtilities
- Author:
- shermann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
toDecimalDegrees
(int degree, int minutes, double seconds) Converts coordinates to decimal degree (as used by google maps).static double
toDecimalDegrees
(String picaValue) Converts coordinates in pica format to decimal degree (as used by google maps).static String
toDegreeMinuteSecond
(double inDecimalDegree) Converts decimal degree to ordinary coordinates.static String
toDegreeMinuteSecond
(String picaValue)
-
Constructor Details
-
MCRGeoUtilities
public MCRGeoUtilities()
-
-
Method Details
-
toDecimalDegrees
public static double toDecimalDegrees(int degree, int minutes, double seconds) Converts coordinates to decimal degree (as used by google maps). -
toDecimalDegrees
Converts coordinates in pica format to decimal degree (as used by google maps).- Returns:
- the decimal degree representation of the coordinates
-
toDegreeMinuteSecond
Converts decimal degree to ordinary coordinates. -
toDegreeMinuteSecond
- Parameters:
picaValue
- the value as stored in opac/pica- Returns:
- a human readable form like 38° 22′ S
- See Also:
-