Class SphericalMercatorUtils

java.lang.Object
org.elasticsearch.common.geo.SphericalMercatorUtils

public class SphericalMercatorUtils extends Object
Utility functions to transforms WGS84 coordinates into spherical mercator.
  • Field Details

  • 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 Rectangle recToSphericalMercator(Rectangle r)
      Transforms WGS84 rectangle to a Spherical mercator rectangle