Package org.apache.sedona.common.utils
Class H3Utils
java.lang.Object
org.apache.sedona.common.utils.H3Utils
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.uber.h3core.H3Core -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapproxPathCells(org.locationtech.jts.geom.Coordinate sc, org.locationtech.jts.geom.Coordinate ec, int level, boolean safe) static org.locationtech.jts.geom.CoordinatecellToCoordinate(long cell) static longcoordinateToCell(org.locationtech.jts.geom.Coordinate coordinate, int level) static com.uber.h3core.util.LatLngcoordinateToLatLng(org.locationtech.jts.geom.Coordinate coordinate) static doublelatLngDistance(double lat1, double lat2, double lon1, double lon2) lineStringToCells(org.locationtech.jts.geom.LineString line, int level, boolean fullCover) polygonToCells(org.locationtech.jts.geom.Polygon polygon, int level, boolean fullCover)
-
Field Details
-
h3
public static com.uber.h3core.H3Core h3 -
cellSizeMap
-
-
Constructor Details
-
H3Utils
public H3Utils()
-
-
Method Details
-
coordinateToLatLng
public static com.uber.h3core.util.LatLng coordinateToLatLng(org.locationtech.jts.geom.Coordinate coordinate) -
cellToCoordinate
public static org.locationtech.jts.geom.Coordinate cellToCoordinate(long cell) -
coordinateToCell
public static long coordinateToCell(org.locationtech.jts.geom.Coordinate coordinate, int level) -
polygonToCells
-
latLngDistance
public static double latLngDistance(double lat1, double lat2, double lon1, double lon2) -
approxPathCells
-
lineStringToCells
-