MBTilesDb class

An mbtiles wrapper class to read and write mbtiles databases.

Constructors

MBTilesDb(String databasePath)
Constructor based on an existing ADb object.

Properties

database SqliteDb
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
metadataMap Map<String, String?>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tileRowType String
getter/setter pair

Methods

addTile(int x, int y, int z, List<int> imageBytes) → void
Add a single tile.
checkMetadata() → void
** **
close() → void
fillMetadata(double n, double s, double w, double e, String name, String format, int minZoom, int maxZoom) → void
Populate the metadata table.
getBounds() List<double>
Get the db envelope.
getTile(int tx, int tyOsm, int zoom) List<int>?
** Get a Tile's image bytes from the database.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() → void
setTileRowType(String tileRowType) → void
Set the row type.
toMetadataQuery(String key, String value) String
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

osmTile2TmsTile(int tx, int ty, int zoom) List<int>
Converts Osm slippy map tile coordinates to TMS Tile coordinates.

Constants

COL_METADATA_NAME → const String
COL_METADATA_VALUE → const String
COL_TILES_TILE_COLUMN → const String
COL_TILES_TILE_DATA → const String
COL_TILES_TILE_ROW → const String
COL_TILES_ZOOM_LEVEL → const String
CREATE_METADATA → const String
CREATE_TILES → const String
INDEX_METADATA → const String
INDEX_TILES → const String
insertTileSql → const String
SELECT_METADATA → const String
SELECTQUERY → const String
TABLE_METADATA → const String
TABLE_TILES → const String
TILESIZE → const int
We have a fixed tile size.