Class VectorTilesExtension
- java.lang.Object
-
- mil.nga.geopackage.extension.BaseExtension
-
- mil.nga.geopackage.extension.im.vector_tiles.VectorTilesExtension
-
public class VectorTilesExtension extends BaseExtension
Vector Tiles Extensionhttps://gitlab.com/imagemattersllc/ogc-vtp2/-/blob/master/extensions/1-vte.adoc
- Since:
- 4.0.0
- Author:
- jyutzler
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXTENSION_AUTHOR
static String
EXTENSION_DEFINITION
static String
EXTENSION_NAME
static String
EXTENSION_NAME_NO_AUTHOR
static String
VECTOR_TILES
Contents Data Type-
Fields inherited from class mil.nga.geopackage.extension.BaseExtension
extensionsDao, geoPackage
-
-
Constructor Summary
Constructors Constructor Description VectorTilesExtension(GeoPackageCore geoPackage)
Constructor
-
Method Summary
-
Methods inherited from class mil.nga.geopackage.extension.BaseExtension
createDao, get, getExtensions, getExtensions, getExtensionsDao, getGeoPackage, getOrCreate, has, has, has, verifyWritable
-
-
-
-
Field Detail
-
EXTENSION_AUTHOR
public static final String EXTENSION_AUTHOR
- See Also:
- Constant Field Values
-
EXTENSION_NAME_NO_AUTHOR
public static final String EXTENSION_NAME_NO_AUTHOR
- See Also:
- Constant Field Values
-
EXTENSION_NAME
public static final String EXTENSION_NAME
-
EXTENSION_DEFINITION
public static final String EXTENSION_DEFINITION
-
VECTOR_TILES
public static final String VECTOR_TILES
Contents Data Type- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VectorTilesExtension
public VectorTilesExtension(GeoPackageCore geoPackage)
Constructor- Parameters:
geoPackage
- GeoPackage
-
-
Method Detail
-
getName
public static String getName()
- Returns:
- the extension name
-
has
public boolean has()
-
createUserVectorTilesTable
public boolean createUserVectorTilesTable(String tableName, VectorTilesEncodingExtension vtee)
- Parameters:
tableName
- user tiles table namevtee
- vector tiles encoding extension- Returns:
- true if table was created, false if the table already existed
-
getOrCreate
public List<Extensions> getOrCreate()
Get or create the extension- Returns:
- extensions
-
getOrCreate
public List<Extensions> getOrCreate(String tilesTable, VectorTilesEncodingExtension vtee)
Get or create the extension- Parameters:
tilesTable
- tiles table namevtee
- vector tiles encoding extension- Returns:
- extensions
-
removeExtension
public void removeExtension()
-
getVectorTilesLayersDao
public VectorTilesLayersDao getVectorTilesLayersDao()
Get the Layers DAO- Returns:
- layers dao
-
getVectorTilesLayersDao
public static VectorTilesLayersDao getVectorTilesLayersDao(GeoPackageCore geoPackage)
Get the Layers DAO- Parameters:
geoPackage
- GeoPackage- Returns:
- layers dao
-
getVectorTilesLayersDao
public static VectorTilesLayersDao getVectorTilesLayersDao(GeoPackageCoreConnection db)
Get the Layers DAO- Parameters:
db
- database connection- Returns:
- layers dao
-
getVectorTilesFieldsDao
public VectorTilesFieldsDao getVectorTilesFieldsDao()
Get the Fields DAO- Returns:
- fields dao
-
getVectorTilesFieldsDao
public static VectorTilesFieldsDao getVectorTilesFieldsDao(GeoPackageCore geoPackage)
Get the Fields DAO- Parameters:
geoPackage
- GeoPackage- Returns:
- fields dao
-
getVectorTilesFieldsDao
public static VectorTilesFieldsDao getVectorTilesFieldsDao(GeoPackageCoreConnection db)
Get the Fields DAO- Parameters:
db
- database connection- Returns:
- fields dao
-
createVectorTilesTables
public boolean createVectorTilesTables()
Create the Vector Tiles Extension- Returns:
- true if created
-
-