java.lang.Object
org.elasticsearch.common.geo.SphericalMercatorUtils
Utility functions to transforms WGS84 coordinates into spherical mercator.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
latToSphericalMercator
(double lat) Transforms WGS84 latitude to a Spherical mercator latitudestatic double
lonToSphericalMercator
(double lon) Transforms WGS84 longitude to a Spherical mercator longitudestatic Rectangle
Transforms WGS84 rectangle to a Spherical mercator rectangle
-
Field Details
-
MERCATOR_BOUNDS
public static final double MERCATOR_BOUNDS- See Also:
-
-
Method Details
-
lonToSphericalMercator
public static double lonToSphericalMercator(double lon) Transforms WGS84 longitude to a Spherical mercator longitude -
latToSphericalMercator
public static double latToSphericalMercator(double lat) Transforms WGS84 latitude to a Spherical mercator latitude -
recToSphericalMercator
Transforms WGS84 rectangle to a Spherical mercator rectangle
-