-
- All Implemented Interfaces:
-
org.osmdroid.tileprovider.modules.IArchiveFile
public class MBTilesFileArchive implements IArchiveFile
supports raster imagery in the MBTiles 1.1 spec https://sourceforge.net/p/mobac/code/HEAD/tree/trunk/MOBAC/src/main/java/mobac/program/atlascreators/MBTiles.java https://github.com/mapbox/mbtiles-spec/tree/master/1.1
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringTABLE_TILESpublic final static StringCOL_TILES_ZOOM_LEVELpublic final static StringCOL_TILES_TILE_COLUMNpublic final static StringCOL_TILES_TILE_ROWpublic final static StringCOL_TILES_TILE_DATA
-
Constructor Summary
Constructors Constructor Description MBTilesFileArchive()
-
Method Summary
Modifier and Type Method Description static MBTilesFileArchivegetDatabaseFileArchive(File pFile)voidinit(File pFile)initialize the file archive, such as performing initial scans, queries, opening a database, etc InputStreamgetInputStream(ITileSource pTileSource, long pMapTileIndex)Get the input stream for the requested tile and tile source. Set<String>getTileSources()returns a list of tile source names that are available in the archive, if supported. voidsetIgnoreTileSource(boolean pIgnoreTileSource)voidclose()Closes the archive file and releases resources. StringtoString()-
-
Method Detail
-
getDatabaseFileArchive
static MBTilesFileArchive getDatabaseFileArchive(File pFile)
-
init
void init(File pFile)
initialize the file archive, such as performing initial scans, queries, opening a database, etc
-
getInputStream
InputStream getInputStream(ITileSource pTileSource, long pMapTileIndex)
Get the input stream for the requested tile and tile source.
Also keep in mind that the tile source has an explicit tile size in pixels, and tile source name.
-
getTileSources
Set<String> getTileSources()
returns a list of tile source names that are available in the archive, if supported. Ifnot supported, return an empty set
-
setIgnoreTileSource
void setIgnoreTileSource(boolean pIgnoreTileSource)
-
close
void close()
Closes the archive file and releases resources.
-
-
-
-