Class H3SphericalUtil

java.lang.Object
org.elasticsearch.xpack.esql.common.spatial.H3SphericalUtil

public final class H3SphericalUtil extends Object
Utility class for generating H3 spherical objects. TODO: This class is a copy of the same class in org.elasticsearch.xpack.spatial.common, we should find a common location for it.
  • Constructor Details

    • H3SphericalUtil

      public H3SphericalUtil()
  • Method Details

    • computeGeoBounds

      public static void computeGeoBounds(long h3, GeoBoundingBox boundingBox)
      Computes the bounding box of the provided h3 cell considering edges to be great circles and stores then in the provided GeoBoundingBox.
    • toGeoPolygon

      public static org.apache.lucene.spatial3d.geom.GeoPolygon toGeoPolygon(long h3)
      Return the GeoPolygon representing the provided H3 bin
    • getLatLonGeometry

      public static org.apache.lucene.geo.LatLonGeometry getLatLonGeometry(long h3)
      Return the LatLonGeometry representing the provided H3 bin