Package org.gbif.api.util
Class LengthUtils
- java.lang.Object
-
- org.gbif.api.util.LengthUtils
-
public class LengthUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
LAT_DEGREE_IN_METER
-
Constructor Summary
Constructors Constructor Description LengthUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
LAT_DEGREE_IN_METER
public static final int LAT_DEGREE_IN_METER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LengthUtils
public LengthUtils()
-
-
Method Detail
-
metersToLatDegree
public static double metersToLatDegree(double meter)
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
public static double latDegreeToMeters(double latDegrees)
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
-
-