public abstract class GeoPackageCoreImpl extends Object implements GeoPackageCore
| Modifier | Constructor and Description |
|---|---|
protected |
GeoPackageCoreImpl(String name,
String path,
GeoPackageCoreConnection database,
GeoPackageTableCreator tableCreator,
boolean writable)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the GeoPackage connection
|
<T,S extends BaseDaoImpl<T,?>> |
createDao(Class<T> type)
Create a dao
|
boolean |
createDataColumnConstraintsTable()
Create the Data Column Constraints table if it does not already exist
|
boolean |
createDataColumnsTable()
Create the Data Columns table if it does not already exist
|
boolean |
createExtensionsTable()
Create the Extensions table if it does not already exist
|
void |
createFeatureTable(FeatureTable table)
Create a new feature table
|
GeometryColumns |
createFeatureTableWithMetadata(GeometryColumns geometryColumns,
BoundingBox boundingBox,
long srsId)
Create a new feature table with GeoPackage metadata.
|
GeometryColumns |
createFeatureTableWithMetadata(GeometryColumns geometryColumns,
BoundingBox boundingBox,
long srsId,
List<FeatureColumn> columns)
Create a new feature table with GeoPackage metadata.
|
GeometryColumns |
createFeatureTableWithMetadata(GeometryColumns geometryColumns,
List<FeatureColumn> additionalColumns,
BoundingBox boundingBox,
long srsId)
Create a new feature table with GeoPackage metadata.
|
GeometryColumns |
createFeatureTableWithMetadata(GeometryColumns geometryColumns,
String idColumnName,
BoundingBox boundingBox,
long srsId)
Create a new feature table with GeoPackage metadata.
|
GeometryColumns |
createFeatureTableWithMetadata(GeometryColumns geometryColumns,
String idColumnName,
List<FeatureColumn> additionalColumns,
BoundingBox boundingBox,
long srsId)
Create a new feature table with GeoPackage metadata.
|
boolean |
createGeometryColumnsTable()
Create the Geometry Columns table if it does not already exist
|
boolean |
createGeometryIndexTable()
Create Geometry Index Table if it does not exist
|
boolean |
createMetadataReferenceTable()
Create the Metadata Reference table if it does not already exist
|
boolean |
createMetadataTable()
Create the Metadata table if it does not already exist
|
boolean |
createTableIndexTable()
Create the Table Index Table if it does not exist
|
boolean |
createTileMatrixSetTable()
Create the Tile Matrix Set table if it does not already exist
|
boolean |
createTileMatrixTable()
Create the Tile Matrix table if it does not already exist
|
void |
createTileTable(TileTable table)
Create a new tile table
|
TileMatrixSet |
createTileTableWithMetadata(String tableName,
BoundingBox contentsBoundingBox,
long contentsSrsId,
BoundingBox tileMatrixSetBoundingBox,
long tileMatrixSetSrsId)
Create a new tile table and the GeoPackage metadata
|
void |
deleteTable(String table)
Delete the user table and all GeoPackage metadata
|
void |
deleteTableQuietly(String tableName)
Attempt to delete the user table and all GeoPackage metadata quietly
|
protected void |
dropSQLiteTriggers(GeometryColumns geometryColumns)
GeoPackages created with SQLite version 4.2.0+ with GeoPackage support
can contain triggers and functions that are not supported in previous
versions.
|
ContentsDao |
getContentsDao()
Get a Contents DAO
|
GeoPackageCoreConnection |
getDatabase()
Get the SQLite database
|
DataColumnConstraintsDao |
getDataColumnConstraintsDao()
Get a Data Column Constraints DAO
|
DataColumnsDao |
getDataColumnsDao()
Get a Data Columns DAO
|
ExtensionsDao |
getExtensionsDao()
Get an Extensions DAO
|
List<String> |
getFeatureTables()
Get the feature tables
|
GeometryColumnsDao |
getGeometryColumnsDao()
Get a Geometry Columns DAO
|
GeometryColumnsSfSqlDao |
getGeometryColumnsSfSqlDao()
Get a SF/SQL Geometry Columns DAO
|
GeometryColumnsSqlMmDao |
getGeometryColumnsSqlMmDao()
Get a SQL/MM Geometry Columns DAO
|
GeometryIndexDao |
getGeometryIndexDao()
Get a Geometry Index DAO
|
MetadataDao |
getMetadataDao()
Get a Metadata DAO
|
MetadataReferenceDao |
getMetadataReferenceDao()
Get a Metadata Reference DAO
|
String |
getName()
Get the GeoPackage name
|
String |
getPath()
Get the GeoPackage path
|
SpatialReferenceSystemDao |
getSpatialReferenceSystemDao()
Get a Spatial Reference System DAO
|
SpatialReferenceSystemSfSqlDao |
getSpatialReferenceSystemSfSqlDao()
Get a SF/SQL Spatial Reference System DAO
|
SpatialReferenceSystemSqlMmDao |
getSpatialReferenceSystemSqlMmDao()
Get a SQL/MM Spatial Reference System DAO
|
TableIndexDao |
getTableIndexDao()
Get a Table Index DAO
|
TileMatrixDao |
getTileMatrixDao()
Get a Tile Matrix DAO
|
TileMatrixSetDao |
getTileMatrixSetDao()
Get a Tile Matrix Set DAO
|
List<String> |
getTileTables()
Get the tile tables
|
boolean |
isWritable()
Is the GeoPackage writable
|
void |
verifyWritable()
Verify the GeoPackage is writable and throw an exception if it is not
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecSQLprotected GeoPackageCoreImpl(String name, String path, GeoPackageCoreConnection database, GeoPackageTableCreator tableCreator, boolean writable)
name - path - database - connectionSource - tableCreator - writable - public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface GeoPackageCorepublic String getName()
getName in interface GeoPackageCorepublic String getPath()
getPath in interface GeoPackageCorepublic GeoPackageCoreConnection getDatabase()
getDatabase in interface GeoPackageCorepublic boolean isWritable()
isWritable in interface GeoPackageCorepublic List<String> getFeatureTables()
getFeatureTables in interface GeoPackageCorepublic List<String> getTileTables()
getTileTables in interface GeoPackageCorepublic SpatialReferenceSystemDao getSpatialReferenceSystemDao()
getSpatialReferenceSystemDao in interface GeoPackageCorepublic SpatialReferenceSystemSqlMmDao getSpatialReferenceSystemSqlMmDao()
getSpatialReferenceSystemSqlMmDao in interface GeoPackageCorepublic SpatialReferenceSystemSfSqlDao getSpatialReferenceSystemSfSqlDao()
getSpatialReferenceSystemSfSqlDao in interface GeoPackageCorepublic ContentsDao getContentsDao()
getContentsDao in interface GeoPackageCorepublic GeometryColumnsDao getGeometryColumnsDao()
getGeometryColumnsDao in interface GeoPackageCorepublic GeometryColumnsSqlMmDao getGeometryColumnsSqlMmDao()
getGeometryColumnsSqlMmDao in interface GeoPackageCorepublic GeometryColumnsSfSqlDao getGeometryColumnsSfSqlDao()
getGeometryColumnsSfSqlDao in interface GeoPackageCorepublic boolean createGeometryColumnsTable()
createGeometryColumnsTable in interface GeoPackageCorepublic void createFeatureTable(FeatureTable table)
createFeatureTable in interface GeoPackageCorepublic GeometryColumns createFeatureTableWithMetadata(GeometryColumns geometryColumns, BoundingBox boundingBox, long srsId)
GeometryColumns.getColumnName().createFeatureTableWithMetadata in interface GeoPackageCoregeometryColumns - geometry columns to createboundingBox - contents bounding boxsrsId - spatial reference system idpublic GeometryColumns createFeatureTableWithMetadata(GeometryColumns geometryColumns, String idColumnName, BoundingBox boundingBox, long srsId)
GeometryColumns.getColumnName().createFeatureTableWithMetadata in interface GeoPackageCoregeometryColumns - geometry columns to createidColumnName - id column nameboundingBox - contents bounding boxsrsId - spatial reference system idpublic GeometryColumns createFeatureTableWithMetadata(GeometryColumns geometryColumns, List<FeatureColumn> additionalColumns, BoundingBox boundingBox, long srsId)
GeometryColumns.getColumnName(), and the provided additional
columns.createFeatureTableWithMetadata in interface GeoPackageCoregeometryColumns - geometry columns to createadditionalColumns - additional user feature table columns to create in addition to
id and geometry columnsboundingBox - contents bounding boxsrsId - spatial reference system idpublic GeometryColumns createFeatureTableWithMetadata(GeometryColumns geometryColumns, String idColumnName, List<FeatureColumn> additionalColumns, BoundingBox boundingBox, long srsId)
GeometryColumns.getColumnName(), and the provided additional
columns.createFeatureTableWithMetadata in interface GeoPackageCoregeometryColumns - geometry columns to createidColumnName - id column nameadditionalColumns - additional user feature table columns to create in addition to
id and geometry columnsboundingBox - contents bounding boxsrsId - spatial reference system idpublic GeometryColumns createFeatureTableWithMetadata(GeometryColumns geometryColumns, BoundingBox boundingBox, long srsId, List<FeatureColumn> columns)
GeometryColumns.getColumnName()createFeatureTableWithMetadata in interface GeoPackageCoregeometryColumns - geometry columns to createboundingBox - contents bounding boxsrsId - spatial reference system idcolumns - user feature table columns to createpublic TileMatrixSetDao getTileMatrixSetDao()
getTileMatrixSetDao in interface GeoPackageCorepublic boolean createTileMatrixSetTable()
createTileMatrixSetTable in interface GeoPackageCorepublic TileMatrixDao getTileMatrixDao()
getTileMatrixDao in interface GeoPackageCorepublic boolean createTileMatrixTable()
createTileMatrixTable in interface GeoPackageCorepublic void createTileTable(TileTable table)
createTileTable in interface GeoPackageCorepublic TileMatrixSet createTileTableWithMetadata(String tableName, BoundingBox contentsBoundingBox, long contentsSrsId, BoundingBox tileMatrixSetBoundingBox, long tileMatrixSetSrsId)
createTileTableWithMetadata in interface GeoPackageCorepublic DataColumnsDao getDataColumnsDao()
getDataColumnsDao in interface GeoPackageCorepublic boolean createDataColumnsTable()
createDataColumnsTable in interface GeoPackageCorepublic DataColumnConstraintsDao getDataColumnConstraintsDao()
getDataColumnConstraintsDao in interface GeoPackageCorepublic boolean createDataColumnConstraintsTable()
createDataColumnConstraintsTable in interface GeoPackageCorepublic MetadataDao getMetadataDao()
getMetadataDao in interface GeoPackageCorepublic boolean createMetadataTable()
createMetadataTable in interface GeoPackageCorepublic MetadataReferenceDao getMetadataReferenceDao()
getMetadataReferenceDao in interface GeoPackageCorepublic boolean createMetadataReferenceTable()
createMetadataReferenceTable in interface GeoPackageCorepublic ExtensionsDao getExtensionsDao()
getExtensionsDao in interface GeoPackageCorepublic boolean createExtensionsTable()
createExtensionsTable in interface GeoPackageCorepublic void deleteTable(String table)
deleteTable in interface GeoPackageCorepublic void deleteTableQuietly(String tableName)
deleteTableQuietly in interface GeoPackageCoreprotected void dropSQLiteTriggers(GeometryColumns geometryColumns)
geometryColumns - public <T,S extends BaseDaoImpl<T,?>> S createDao(Class<T> type)
createDao in interface GeoPackageCorepublic void verifyWritable()
verifyWritable in interface GeoPackageCorepublic TableIndexDao getTableIndexDao()
getTableIndexDao in interface GeoPackageCorepublic boolean createTableIndexTable()
createTableIndexTable in interface GeoPackageCorepublic GeometryIndexDao getGeometryIndexDao()
getGeometryIndexDao in interface GeoPackageCorepublic boolean createGeometryIndexTable()
createGeometryIndexTable in interface GeoPackageCoreCopyright © 2016 National Geospatial-Intelligence Agency. All rights reserved.