Package 

Class MBTilesFileArchive

  • 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

    • Constructor Detail

      • MBTilesFileArchive

        MBTilesFileArchive()
    • Method Detail

      • 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

      • close

         void close()

        Closes the archive file and releases resources.