Class GridOSHWays

    • Constructor Detail

      • GridOSHWays

        public GridOSHWays​(long id,
                           int level,
                           long baseId,
                           long baseTimestamp,
                           int baseLongitude,
                           int baseLatitude,
                           int[] index,
                           byte[] data)
    • Method Detail

      • compact

        public static GridOSHWays compact​(long id,
                                          int level,
                                          long baseId,
                                          long baseTimestamp,
                                          int baseLongitude,
                                          int baseLatitude,
                                          List<OSHWay> list)
        Creates a new GridOSHWays while rebase/compacting the input ways.
        Parameters:
        id - the grid id
        level - zoom level
        baseId - base of id for compact entities
        baseTimestamp - base of timemstamps for compact entities
        baseLongitude - base of longitude for compact entities
        baseLatitude - base of latitued for compact entities
        list - list of entities
        Returns:
        new instance of this grid