Class ZGrid


  • public class ZGrid
    extends Object
    • Field Detail

      • ORDER_DFS_TOP_DOWN

        public static final Comparator<Long> ORDER_DFS_TOP_DOWN
      • ORDER_DFS_BOTTOM_UP

        public static final Comparator<Long> ORDER_DFS_BOTTOM_UP
    • Constructor Detail

      • ZGrid

        public ZGrid​(int maxZoom)
        Creates a ZGrid index based on maximal Zoom.
    • Method Detail

      • getIdSingleZidWithZoom

        public long getIdSingleZidWithZoom​(long lon,
                                           long lat)
      • getIdSingleZidWithZoom

        public long getIdSingleZidWithZoom​(long[] lon,
                                           long[] lat)
      • getIdSingleZidWithZoom

        public long getIdSingleZidWithZoom​(long minLon,
                                           long maxLon,
                                           long minLat,
                                           long maxLat)
      • getZoom

        public static int getZoom​(long zid)
      • addZoomToId

        public static long addZoomToId​(long id,
                                       int zoom)
      • getIdWithoutZoom

        public static long getIdWithoutZoom​(long zid)
      • getParent

        public static long getParent​(long zid,
                                     int parentZoom)
      • getParent

        public static long getParent​(long zid)