Package org.gbif.api.util
Class LengthUtils
java.lang.Object
org.gbif.api.util.LengthUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
latDegreeToMeters
(double latDegrees) Latitude degrees are roughly linear to meters on the earth spheroid.static double
metersToLatDegree
(double meter) Latitude degrees are roughly linear to meters on the earth spheroid.
-
Field Details
-
LAT_DEGREE_IN_METER
- See Also:
-
-
Constructor Details
-
LengthUtils
public LengthUtils()
-
-
Method Details
-
metersToLatDegree
Latitude degrees are roughly linear to meters on the earth spheroid. Just the longitudinal degree changes considerably with distance to the equator See https://en.wikipedia.org/wiki/Geographic_coordinate_system#Expressing_latitude_and_longitude_as_linear_units- Returns:
- the decimal latitudinal degree equivalent to the given length in meters
-
latDegreeToMeters
Latitude degrees are roughly linear to meters on the earth spheroid. Just the longitudinal degree changes considerably with distance to the equator See https://en.wikipedia.org/wiki/Geographic_coordinate_system#Expressing_latitude_and_longitude_as_linear_units- Returns:
- the length in meters equivalent to the given decimal latitudinal degree
-