public class MBTilesDbHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
android.database.sqlite.SQLiteDatabase |
database |
| Constructor and Description |
|---|
MBTilesDbHelper(android.content.Context ctx,
String databaseName)
Construct database helper with own tile table format.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
containsKey(int z,
int x,
int y,
String table) |
byte[] |
getGrid(int zoom,
int x,
int y) |
HashMap<String,String> |
getMetadata() |
android.database.Cursor |
getTables() |
byte[] |
getTileImg(int z,
int x,
int y) |
Map<String,String> |
getUtfGridTooltips(com.nutiteq.components.MapTile clickedTile,
com.nutiteq.components.MutableMapPos tilePos)
Query UTFGrid tooltip values from database for given hover/clicked location
|
int[] |
getZoomRange() |
void |
open() |
int[] |
tileBounds(int zoom) |
public MBTilesDbHelper(android.content.Context ctx,
String databaseName)
ctx - Android application contextdatabaseName - Database file pathtileTable - Tile table name, e.g. "tiles"keyZoom - column name for zoomkeyX - table column name for x/columnkeyY - table column name for y/rowkeyData - column for binary data (blob)tableWhere - where SQL clause for tile row search, as prepared statement
e.g. "zoom_level = ? and tile_column = ? and tile_row = ?"tableWhere2 - keyGridJson - keyGridName - keyGrid - keyTileData - public void open()
public void close()
public boolean containsKey(int z,
int x,
int y,
String table)
public byte[] getTileImg(int z,
int x,
int y)
public byte[] getGrid(int zoom,
int x,
int y)
public int[] getZoomRange()
public int[] tileBounds(int zoom)
public android.database.Cursor getTables()
public Map<String,String> getUtfGridTooltips(com.nutiteq.components.MapTile clickedTile, com.nutiteq.components.MutableMapPos tilePos)
p - position on map, in EPSG3857zoom - current map zoomCopyright © 2014. All rights reserved.