Class H3SphericalUtil
java.lang.Object
org.elasticsearch.xpack.esql.common.spatial.H3SphericalUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcomputeGeoBounds(long h3, GeoBoundingBox boundingBox) Computes the bounding box of the provided h3 cell considering edges to be great circles and stores then in the providedGeoBoundingBox.static org.apache.lucene.geo.LatLonGeometrygetLatLonGeometry(long h3) Return theLatLonGeometryrepresenting the provided H3 binstatic org.apache.lucene.spatial3d.geom.GeoPolygontoGeoPolygon(long h3) Return theGeoPolygonrepresenting the provided H3 bin
-
Constructor Details
-
H3SphericalUtil
public H3SphericalUtil()
-
-
Method Details
-
computeGeoBounds
Computes the bounding box of the provided h3 cell considering edges to be great circles and stores then in the providedGeoBoundingBox. -
toGeoPolygon
public static org.apache.lucene.spatial3d.geom.GeoPolygon toGeoPolygon(long h3) Return theGeoPolygonrepresenting the provided H3 bin -
getLatLonGeometry
public static org.apache.lucene.geo.LatLonGeometry getLatLonGeometry(long h3) Return theLatLonGeometryrepresenting the provided H3 bin
-