The DBTiles TileLayer stores tiles like MBTiles but in any JDBC database. Currently only H2, SQLite, and Postgresql have been tested.
Modifiers | Name | Description |
---|---|---|
static class |
DBTiles.Factory |
The DBTiles TileLayerFactory |
Constructor and description |
---|
DBTiles
(Map options = [:], java.lang.String url, java.lang.String driver) Open an existing DBTiles. |
DBTiles
(Map options = [:], javax.sql.DataSource dataSource) Open an existing DBTiles Layer |
DBTiles
(Map options = [:], java.lang.String url, java.lang.String driver, java.lang.String name, java.lang.String description) Create a new DBTiles |
DBTiles
(Map options = [:], javax.sql.DataSource dataSource, java.lang.String name, java.lang.String description) Create a new DBTiles from a SQL DataSource |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
close() |
|
void |
delete(ImageTile t) |
|
ImageTile |
get(long z, long x, long y) |
|
int |
getMaxZoom() Get the maximum zoom level of the tiles present. |
|
java.util.Map<java.lang.String, java.lang.String> |
getMetadata() Get metadata (type, name, description, format, version, attribution, bounds) |
|
int |
getMinZoom() Get the minimum zoom level of the tiles present. |
|
Pyramid |
getPyramid() |
|
java.util.List<java.util.Map> |
getTileCounts() Get the number of tiles per zoom level. |
|
void |
put(ImageTile t) |
Methods inherited from class | Name |
---|---|
class ImageTileLayer |
getMapLayers, getRaster, getRaster, getRaster |
class TileLayer |
close, delete, delete, get, getLayer, getPyramid, getTileCoordinates, getTileLayer, getTileLayer, getTileRenderer, getTileRenderer, put, tiles, tiles, tiles, tiles, tiles, tiles, toString, withTileLayer |
Open an existing DBTiles.
options
- Optional named parameters
url
- The Database urldriver
- The Database driver class nameOpen an existing DBTiles Layer
options
- Optional named parameters
dataSource
- The SQL DataSourceCreate a new DBTiles
options
- The optional named parameters
url
- The JDBC URLdriver
- The JDBC driver class namename
- The name of the layerdescription
- The description of the layerCreate a new DBTiles from a SQL DataSource
options
- The optional named parameters
dataSource
- The SQL DataSourcename
- The name of the layerdescription
- The description of the layerGet the maximum zoom level of the tiles present.
Get metadata (type, name, description, format, version, attribution, bounds)
Get the minimum zoom level of the tiles present.
Get the number of tiles per zoom level.