Class TPKBundle


  • public class TPKBundle
    extends Object
    A zoom level consists of 1 or more bundles A bundle is physically always 128 columns by 128 rows but may be "logically" smaller (ie it doesn't necessarily have data for each row/column)
    • Constructor Detail

      • TPKBundle

        public TPKBundle​(String bundleName,
                         String indexName,
                         long baseColumn,
                         long baseRow,
                         Supplier<ZipFile> TPKFile,
                         Supplier<Map<String,​ZipEntry>> zipEntryMap)
    • Method Detail

      • releaseResources

        public void releaseResources()
      • inBundle

        public boolean inBundle​(long column,
                                long row)
        Predicate function to determine if the column,row coordinates are contained in the "coverage" of this bundle
        Parameters:
        column - -- column number
        row - -- row number
        Returns:
        -- true if tile at column,row is in this bundle otherwise false