Package org.elasticsearch.common.geo
Class SphericalMercatorUtils
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 org.elasticsearch.geometry.Rectangle
recToSphericalMercator(org.elasticsearch.geometry.Rectangle r)
Transforms WGS84 rectangle to a Spherical mercator rectangle
-
Field Details
-
MERCATOR_BOUNDS
public static final double MERCATOR_BOUNDS- See Also:
- Constant Field Values
-
-
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
public static org.elasticsearch.geometry.Rectangle recToSphericalMercator(org.elasticsearch.geometry.Rectangle r)Transforms WGS84 rectangle to a Spherical mercator rectangle
-