Class GridOSHRelations

    • Method Detail

      • compact

        public static GridOSHRelations compact​(long id,
                                               int level,
                                               long baseId,
                                               long baseTimestamp,
                                               int baseLongitude,
                                               int baseLatitude,
                                               List<OSHRelation> list)
        Creates a new GridOSHRelations while rebase/compacting the input relations.
        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