public abstract class GeoPackageCoreImpl extends Object implements GeoPackageCore
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
writable
Writable GeoPackage flag
|
| 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
|
void |
createAttributesTable(AttributesTable table)
Create a new attributes table
|
AttributesTable |
createAttributesTable(String tableName,
List<AttributesColumn> columns)
Create a new attributes table.
|
AttributesTable |
createAttributesTable(String tableName,
String idColumnName,
List<AttributesColumn> additionalColumns)
Create a new attributes table.
|
AttributesTable |
createAttributesTableWithId(String tableName,
List<AttributesColumn> additionalColumns)
Create a new attributes table.
|
<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 |
createFeatureTileLinkTable()
Create the Feature Tile Link Table if it does not exist
|
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 |
createGriddedCoverageTable()
Create the 2D Gridded Coverage Table if it does not exist
|
boolean |
createGriddedTileTable()
Create the 2D Gridded Tile 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
|
boolean |
createTileScalingTable()
Create the Tile Scaling Table if it does not exist
|
void |
createTileTable(TileTable table)
Create a new tile table
|
TileMatrixSet |
createTileTableWithMetadata(ContentsDataType dataType,
String tableName,
BoundingBox contentsBoundingBox,
long contentsSrsId,
BoundingBox tileMatrixSetBoundingBox,
long tileMatrixSetSrsId)
Create a new tile table of the specified type and the GeoPackage metadata
|
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 (a feature or tile table) and all GeoPackage
metadata
|
void |
deleteTableQuietly(String tableName)
Attempt to delete the user table (a feature or tile table) and all
GeoPackage metadata quietly
|
void |
dropTable(String table)
Drop the table if it exists.
|
String |
getApplicationId()
Get the application id
|
List<String> |
getAttributesTables()
Get the attributes tables
|
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> |
getFeatureAndTileTables()
Get the feature and tile tables
|
List<String> |
getFeatureTables()
Get the feature tables
|
FeatureTileLinkDao |
getFeatureTileLinkDao()
Get a Feature Tile Link DAO
|
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
|
GriddedCoverageDao |
getGriddedCoverageDao()
Get a 2D Gridded Coverage DAO
|
GriddedTileDao |
getGriddedTileDao()
Get a 2D Gridded Tile 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
|
List<String> |
getTables()
Get all tables
|
List<String> |
getTables(ContentsDataType type)
Get the tables for the contents data type
|
TileMatrixDao |
getTileMatrixDao()
Get a Tile Matrix DAO
|
TileMatrixSetDao |
getTileMatrixSetDao()
Get a Tile Matrix Set DAO
|
TileScalingDao |
getTileScalingDao()
Get a Tile Scaling DAO
|
List<String> |
getTileTables()
Get the tile tables
|
int |
getUserVersion()
Get the user version
|
int |
getUserVersionMajor()
Get the major user version
|
int |
getUserVersionMinor()
Get the minor user version
|
int |
getUserVersionPatch()
Get the patch user version
|
boolean |
isFeatureOrTileTable(String table)
Check if the table exists as a feature or tile table
|
boolean |
isFeatureTable(String table)
Check if the table is a feature table
|
boolean |
isTable(String table)
Check if the table exists as a user table
|
boolean |
isTableType(ContentsDataType type,
String table)
Check if the table is the provided type
|
boolean |
isTileTable(String table)
Check if the table is a tile table
|
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 - namepath - pathdatabase - databasetableCreator - table creatorwritable - true if writablepublic 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 String getApplicationId()
getApplicationId in interface GeoPackageCorepublic int getUserVersion()
getUserVersion in interface GeoPackageCorepublic int getUserVersionMajor()
getUserVersionMajor in interface GeoPackageCorepublic int getUserVersionMinor()
getUserVersionMinor in interface GeoPackageCorepublic int getUserVersionPatch()
getUserVersionPatch in interface GeoPackageCorepublic List<String> getFeatureTables()
getFeatureTables in interface GeoPackageCorepublic List<String> getTileTables()
getTileTables in interface GeoPackageCorepublic List<String> getAttributesTables()
getAttributesTables in interface GeoPackageCorepublic List<String> getTables(ContentsDataType type)
getTables in interface GeoPackageCoretype - data typepublic List<String> getFeatureAndTileTables()
getFeatureAndTileTables in interface GeoPackageCorepublic List<String> getTables()
getTables in interface GeoPackageCorepublic boolean isFeatureTable(String table)
isFeatureTable in interface GeoPackageCoretable - table namepublic boolean isTileTable(String table)
isTileTable in interface GeoPackageCoretable - table namepublic boolean isTableType(ContentsDataType type, String table)
isTableType in interface GeoPackageCoretype - data typetable - table namepublic boolean isFeatureOrTileTable(String table)
isFeatureOrTileTable in interface GeoPackageCoretable - table namepublic boolean isTable(String table)
isTable in interface GeoPackageCoretable - table namepublic 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 GeoPackageCoretable - feature tablepublic 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 GeoPackageCoretable - tile tablepublic TileMatrixSet createTileTableWithMetadata(String tableName, BoundingBox contentsBoundingBox, long contentsSrsId, BoundingBox tileMatrixSetBoundingBox, long tileMatrixSetSrsId)
createTileTableWithMetadata in interface GeoPackageCoretableName - table namecontentsBoundingBox - contents bounding boxcontentsSrsId - contents SRS idtileMatrixSetBoundingBox - tile matrix set bounding boxtileMatrixSetSrsId - tile matrix set SRS idpublic TileMatrixSet createTileTableWithMetadata(ContentsDataType dataType, String tableName, BoundingBox contentsBoundingBox, long contentsSrsId, BoundingBox tileMatrixSetBoundingBox, long tileMatrixSetSrsId)
createTileTableWithMetadata in interface GeoPackageCoredataType - contents data typetableName - table namecontentsBoundingBox - contents bounding boxcontentsSrsId - contents SRS idtileMatrixSetBoundingBox - tile matrix set bounding boxtileMatrixSetSrsId - tile matrix set SRS idpublic 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 GeoPackageCoretable - table namepublic void deleteTableQuietly(String tableName)
deleteTableQuietly in interface GeoPackageCoretableName - table namepublic <T,S extends BaseDaoImpl<T,?>> S createDao(Class<T> type)
createDao in interface GeoPackageCoretype - dao class typepublic void verifyWritable()
verifyWritable in interface GeoPackageCorepublic void dropTable(String table)
dropTable in interface GeoPackageCoretable - table namepublic GriddedCoverageDao getGriddedCoverageDao()
getGriddedCoverageDao in interface GeoPackageCorepublic boolean createGriddedCoverageTable()
createGriddedCoverageTable in interface GeoPackageCorepublic GriddedTileDao getGriddedTileDao()
getGriddedTileDao in interface GeoPackageCorepublic boolean createGriddedTileTable()
createGriddedTileTable 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 GeoPackageCorepublic FeatureTileLinkDao getFeatureTileLinkDao()
getFeatureTileLinkDao in interface GeoPackageCorepublic boolean createFeatureTileLinkTable()
createFeatureTileLinkTable in interface GeoPackageCorepublic void createAttributesTable(AttributesTable table)
createAttributesTable in interface GeoPackageCoretable - attributes tablepublic AttributesTable createAttributesTableWithId(String tableName, List<AttributesColumn> additionalColumns)
createAttributesTableWithId in interface GeoPackageCoretableName - table nameadditionalColumns - additional attributes table columns to create in addition to
idpublic AttributesTable createAttributesTable(String tableName, String idColumnName, List<AttributesColumn> additionalColumns)
createAttributesTable in interface GeoPackageCoretableName - table nameidColumnName - id column nameadditionalColumns - additional attributes table columns to create in addition to
idpublic AttributesTable createAttributesTable(String tableName, List<AttributesColumn> columns)
createAttributesTable in interface GeoPackageCoretableName - table namecolumns - table columns to createpublic TileScalingDao getTileScalingDao()
getTileScalingDao in interface GeoPackageCorepublic boolean createTileScalingTable()
createTileScalingTable in interface GeoPackageCoreCopyright © 2018 National Geospatial-Intelligence Agency. All rights reserved.