public class TPKZoomLevelV1 extends Object implements TPKZoomLevel
TPK is a ZIP archive
In V1 the bundle index is a separate file from the bundle data and index entries are each 5-bytes long. The index is stored in column-major order.
| Constructor and Description |
|---|
TPKZoomLevelV1(ZipFile theTPK,
Map<String,ZipEntry> zipEntryMap,
List<String> bundleNames,
List<String> indexNames,
long zoomLevel) |
| Modifier and Type | Method and Description |
|---|---|
long |
getMaxColumn() |
long |
getMaxRow() |
long |
getMinColumn() |
long |
getMinRow() |
List<TPKTile> |
getTiles(long top,
long bottom,
long left,
long right,
String format)
Read the tile data for the given coverage and return a list of tile objects to the caller.
|
long |
getZoomLevel() |
void |
releaseResources()
When done with TPK file call this method for each Zoom Level to free up held resources and
remove object references that would prevent garbage collection
|
void |
setTPKandEntryMap(ZipFile theTPK,
Map<String,ZipEntry> zipEntryMap)
On subsequent uses of a TPK file we must use this method to set current references!!
|
public void setTPKandEntryMap(ZipFile theTPK, Map<String,ZipEntry> zipEntryMap)
setTPKandEntryMap in interface TPKZoomLeveltheTPK - -- reference to the TPK ZipFile objectzipEntryMap - -- reference to the ZipEntry mapping objectpublic List<TPKTile> getTiles(long top, long bottom, long left, long right, String format)
getTiles in interface TPKZoomLeveltop - -- topmost row of coveragebottom - -- bottommost row of coverageleft - -- leftmost column of coverageright - -- rightmost column of coverageformat - -- format of tile data (PNG, JPEG)public void releaseResources()
releaseResources in interface TPKZoomLevelpublic long getZoomLevel()
getZoomLevel in interface TPKZoomLevelpublic long getMinRow()
getMinRow in interface TPKZoomLevelpublic long getMaxRow()
getMaxRow in interface TPKZoomLevelpublic long getMinColumn()
getMinColumn in interface TPKZoomLevelpublic long getMaxColumn()
getMaxColumn in interface TPKZoomLevelCopyright © 1996–2021 Geotools. All rights reserved.