Class H3IndexResolution


  • public class H3IndexResolution
    extends Object
    Stores the resolutions for an index. There are in total of H3 resolutions https://h3geo .org/#/documentation/core-library/resolution-table To efficiently serialize the resolutions, we use two bytes for encoding th enabled resolutions. The resolution level maps to the corresponding bit.
    • Constructor Detail

      • H3IndexResolution

        public H3IndexResolution​(List<Integer> resolutions)
      • H3IndexResolution

        public H3IndexResolution​(short resolutions)
        Creates the resolutions with the serialized short value
        Parameters:
        resolutions -
    • Method Detail

      • serialize

        public short serialize()
        Returns:
        the encoding of the resolutions into a short value (two bytes)
      • size

        public int size()
      • getResolutions

        public List<Integer> getResolutions()
      • getLowestResolution

        public int getLowestResolution()