Class H3Utils

java.lang.Object
org.apache.sedona.common.utils.H3Utils

public class H3Utils extends Object
  • Field Details

    • h3

      public static com.uber.h3core.H3Core h3
    • cellSizeMap

      public static Map<Integer,Double> 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

      public static List<Long> polygonToCells(org.locationtech.jts.geom.Polygon polygon, int level, boolean fullCover)
    • latLngDistance

      public static double latLngDistance(double lat1, double lat2, double lon1, double lon2)
    • approxPathCells

      public static List<Long> approxPathCells(org.locationtech.jts.geom.Coordinate sc, org.locationtech.jts.geom.Coordinate ec, int level, boolean safe)
    • lineStringToCells

      public static List<Long> lineStringToCells(org.locationtech.jts.geom.LineString line, int level, boolean fullCover)