Package mil.nga.geopackage.dgiwg
Class DGIWGGeoPackage
java.lang.Object
mil.nga.geopackage.GeoPackageCoreImpl
mil.nga.geopackage.GeoPackageImpl
mil.nga.geopackage.dgiwg.DGIWGGeoPackage
- All Implemented Interfaces:
Closeable
,AutoCloseable
,GeoPackage
,GeoPackageCore
DGIWG (Defence Geospatial Information Working Group) GeoPackage
implementation
- Since:
- 6.7.0
-
Field Summary
Fields inherited from class mil.nga.geopackage.GeoPackageCoreImpl
writable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateFeatures
(String table, String identifier, String description, BoundingBox bounds, GeometryType geometryType, List<FeatureColumn> columns, CoordinateReferenceSystem crs) Create features tablecreateFeatures
(String table, String identifier, String description, BoundingBox bounds, GeometryType geometryType, CoordinateReferenceSystem crs) Create features tablecreateFeatures
(String table, String identifier, String description, BoundingBox bounds, GeometryType geometryType, DataType dataType, List<FeatureColumn> columns, SpatialReferenceSystem srs) Create features tablecreateFeatures
(String table, String identifier, String description, BoundingBox bounds, GeometryType geometryType, DataType dataType, SpatialReferenceSystem srs) Create features tablecreateFeatures
(String table, String identifier, String description, GeometryType geometryType, List<FeatureColumn> columns, CoordinateReferenceSystem crs) Create features tablecreateFeatures
(String table, String identifier, String description, GeometryType geometryType, CoordinateReferenceSystem crs) Create features tablecreateFeatures
(String table, BoundingBox bounds, GeometryType geometryType, List<FeatureColumn> columns, CoordinateReferenceSystem crs) Create features tablecreateFeatures
(String table, BoundingBox bounds, GeometryType geometryType, CoordinateReferenceSystem crs) Create features tablecreateFeatures
(String table, BoundingBox bounds, GeometryType geometryType, DataType dataType, List<FeatureColumn> columns, SpatialReferenceSystem srs) Create features tablecreateFeatures
(String table, BoundingBox bounds, GeometryType geometryType, DataType dataType, SpatialReferenceSystem srs) Create features tablecreateFeatures
(String table, GeometryType geometryType, List<FeatureColumn> columns, CoordinateReferenceSystem crs) Create features tablecreateFeatures
(String table, GeometryType geometryType, CoordinateReferenceSystem crs) Create features tablecreateGeoPackageDatasetMetadata
(String uri, String metadata) Create GeoPackage metadata with a dataset scope and metadata referencecreateGeoPackageMetadata
(MetadataScopeType scope, String uri, String metadata) Create GeoPackage metadata and metadata referencecreateGeoPackageSeriesMetadata
(String uri, String metadata) Create GeoPackage metadata with a series scope and metadata referencevoid
createMetadata
(Metadata metadata) Create metadatavoid
createMetadata
(Metadata metadata, MetadataReference reference) Create metadata and metadata referencecreateMetadata
(MetadataScopeType scope, String uri, String metadata, MetadataReference reference) Create metadata and metadata referencevoid
createMetadataReference
(Metadata metadata, MetadataReference reference) Create metadata referencevoid
createMetadataReference
(MetadataReference reference) Create metadata referencevoid
createTileMatrices
(String table, BoundingBox boundingBox, long minZoom, long maxZoom, long matrixWidth, long matrixHeight) Create tile matrices for zoom levelsvoid
createTileMatrices
(String table, BoundingBox boundingBox, Collection<Long> zoomLevels, long matrixWidth, long matrixHeight) Create tile matrices for zoom levelsvoid
createTileMatrices
(TileMatrixSet tileMatrixSet, long minZoom, long maxZoom, long matrixWidth, long matrixHeight) Create tile matrices for zoom levelsvoid
createTileMatrices
(TileMatrixSet tileMatrixSet, Collection<Long> zoomLevels, long matrixWidth, long matrixHeight) Create tile matrices for zoom levelsvoid
createTileMatrix
(String table, long zoom, long matrixWidth, long matrixHeight, double pixelXSize, double pixelYSize) Create a tile matrix for a zoom levelvoid
createTileMatrix
(String table, BoundingBox boundingBox, long zoom, long matrixWidth, long matrixHeight) Create a tile matrix for a zoom levelvoid
createTileMatrix
(TileMatrixSet tileMatrixSet, long zoom, long matrixWidth, long matrixHeight) Create a tile matrix for a zoom levelcreateTiles
(String table, String identifier, String description, BoundingBox informativeBounds, CoordinateReferenceSystem crs) Create tiles tablecreateTiles
(String table, String identifier, String description, BoundingBox informativeBounds, CoordinateReferenceSystem crs, BoundingBox extentBounds) Create tiles tablecreateTiles
(String table, String identifier, String description, BoundingBox informativeBounds, SpatialReferenceSystem srs, BoundingBox extentBounds) Create tiles tablecreateTiles
(String table, String identifier, String description, CoordinateReferenceSystem crs) Create tiles tablecreateTiles
(String table, String identifier, String description, CoordinateReferenceSystem crs, BoundingBox extentBounds) Create tiles tablecreateTiles
(String table, String identifier, String description, SpatialReferenceSystem srs, BoundingBox extentBounds) Create tiles tablecreateTiles
(String table, CoordinateReferenceSystem crs) Create tiles tablecreateTiles
(String table, CoordinateReferenceSystem crs, BoundingBox extentBounds) Create tiles tablecreateTiles
(String table, SpatialReferenceSystem srs, BoundingBox extentBounds) Create tiles tableGet the most recentvalidate()
resultsgetFile()
Get the DGIWG fileGet the DGIWG file nameboolean
isValid()
Is the GeoPackage valid according to the DGIWG GeoPackage ProfileQuery for GeoPackage DGIWG Metadata Foundation (DMF) metadataqueryGeoPackageMetadata
(String baseURI) Query for GeoPackage metadataQuery for GeoPackage NSG Metadata Foundation (NMF) NSG Application Schema (NAS) metadatavalidate()
Validate the GeoPackage against the DGIWG GeoPackage ProfileValidate the GeoPackage table against the DGIWG GeoPackage ProfileValidate the GeoPackage tables against the DGIWG GeoPackage ProfileMethods inherited from class mil.nga.geopackage.GeoPackageImpl
beginTransaction, commit, endTransaction, execSQL, foreignKeyCheck, foreignKeyCheck, getAttributesDao, getAttributesDao, getAttributesDao, getConnection, getContext, getCursorFactory, getFeatureBoundingBox, getFeatureDao, getFeatureDao, getFeatureDao, getFeatureDao, getTileDao, getTileDao, getTileDao, getTileDao, getUserCustomDao, getUserCustomDao, getUserDao, integrityCheck, inTransaction, quickCheck, rawQuery, registerCursorWrapper
Methods inherited from class mil.nga.geopackage.GeoPackageCoreImpl
callInTransaction, close, copyAttributeTable, copyContents, copyFeatureTable, copyTable, copyTable, copyTableAsEmpty, copyTableNoExtensions, copyTileTable, copyUserTable, copyUserTable, createAttributesTable, createAttributesTable, createDao, createExtensionsTable, createFeatureTable, createFeatureTable, createGeometryColumnsTable, createTileMatrixSetTable, createTileMatrixTable, createTileTable, createTileTable, createUserTable, deleteTable, deleteTableQuietly, dropTable, dropView, enableForeignKeys, endAndBeginTransaction, endTransaction, failTransaction, foreignKeys, foreignKeys, getApplicationId, getApplicationIdHex, getApplicationIdInteger, getAttributesTables, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getContentsBoundingBox, getContentsBoundingBox, getContentsBoundingBox, getContentsDao, getContentsProjection, getDatabase, getExtensionManager, getExtensionsDao, getFeatureTables, getGeometryColumnsDao, getName, getPath, getProjection, getSpatialReferenceSystemDao, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableContents, getTableCoreDataType, getTableCreator, getTableDataType, getTables, getTables, getTables, getTables, getTables, getTableType, getTileMatrixDao, getTileMatrixSetDao, getTileTables, getTypeContents, getTypeContents, getTypeContents, getTypeContents, getUserVersion, getUserVersionMajor, getUserVersionMinor, getUserVersionPatch, isAttributeTable, isContentsTable, isFeatureTable, isTable, isTableCoreDataType, isTableOrView, isTableType, isTableType, isTableType, isTableType, isTileTable, isView, isWritable, renameTable, saveSchema, vacuum, verifyWritable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mil.nga.geopackage.GeoPackageCore
callInTransaction, close, copyTable, copyTableAsEmpty, copyTableNoExtensions, createAttributesTable, createAttributesTable, createDao, createExtensionsTable, createFeatureTable, createFeatureTable, createGeometryColumnsTable, createTileMatrixSetTable, createTileMatrixTable, createTileTable, createTileTable, createUserTable, deleteTable, deleteTableQuietly, dropTable, dropView, enableForeignKeys, endAndBeginTransaction, endTransaction, failTransaction, foreignKeys, foreignKeys, getApplicationId, getApplicationIdHex, getApplicationIdInteger, getAttributesTables, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getContentsBoundingBox, getContentsBoundingBox, getContentsBoundingBox, getContentsDao, getContentsProjection, getDatabase, getExtensionManager, getExtensionsDao, getFeatureTables, getGeometryColumnsDao, getName, getPath, getProjection, getSpatialReferenceSystemDao, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableContents, getTableCoreDataType, getTableCreator, getTableDataType, getTables, getTables, getTables, getTables, getTables, getTableType, getTileMatrixDao, getTileMatrixSetDao, getTileTables, getTypeContents, getTypeContents, getTypeContents, getTypeContents, getUserVersion, getUserVersionMajor, getUserVersionMinor, getUserVersionPatch, isAttributeTable, isContentsTable, isFeatureTable, isTable, isTableCoreDataType, isTableOrView, isTableType, isTableType, isTableType, isTableType, isTileTable, isView, isWritable, renameTable, saveSchema, vacuum, verifyWritable
-
Constructor Details
-
DGIWGGeoPackage
Constructor- Parameters:
geoPackage
- GeoPackage
-
-
Method Details
-
getFile
Get the DGIWG file- Returns:
- DGIWG file
-
getFileName
Get the DGIWG file name- Returns:
- DGIWG file name
-
isValid
public boolean isValid()Is the GeoPackage valid according to the DGIWG GeoPackage Profile- Returns:
- true if valid
-
validate
Validate the GeoPackage against the DGIWG GeoPackage Profile- Returns:
- validation errors
-
getErrors
Get the most recentvalidate()
results- Returns:
- validation errors, null if not yet validated
-
validate
Validate the GeoPackage table against the DGIWG GeoPackage Profile- Parameters:
table
- table- Returns:
- validation errors
-
validate
Validate the GeoPackage tables against the DGIWG GeoPackage Profile- Parameters:
tables
- tables- Returns:
- validation errors
-
createTiles
Create tiles table- Parameters:
table
- table namecrs
- coordinate reference system- Returns:
- created tile matrix set
-
createTiles
public TileMatrixSet createTiles(String table, String identifier, String description, CoordinateReferenceSystem crs) Create tiles table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptioncrs
- coordinate reference system- Returns:
- created tile matrix set
-
createTiles
public TileMatrixSet createTiles(String table, String identifier, String description, BoundingBox informativeBounds, CoordinateReferenceSystem crs) Create tiles table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptioninformativeBounds
- informative contents boundscrs
- coordinate reference system- Returns:
- created tile matrix set
-
createTiles
public TileMatrixSet createTiles(String table, CoordinateReferenceSystem crs, BoundingBox extentBounds) Create tiles table- Parameters:
table
- table namecrs
- coordinate reference systemextentBounds
- crs extent bounds- Returns:
- created tile matrix set
-
createTiles
public TileMatrixSet createTiles(String table, String identifier, String description, CoordinateReferenceSystem crs, BoundingBox extentBounds) Create tiles table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptioncrs
- coordinate reference systemextentBounds
- crs extent bounds- Returns:
- created tile matrix set
-
createTiles
public TileMatrixSet createTiles(String table, String identifier, String description, BoundingBox informativeBounds, CoordinateReferenceSystem crs, BoundingBox extentBounds) Create tiles table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptioninformativeBounds
- informative contents boundscrs
- coordinate reference systemextentBounds
- crs extent bounds- Returns:
- created tile matrix set
-
createTiles
public TileMatrixSet createTiles(String table, SpatialReferenceSystem srs, BoundingBox extentBounds) Create tiles table- Parameters:
table
- table namesrs
- spatial reference systemextentBounds
- crs extent bounds- Returns:
- created tile matrix set
-
createTiles
public TileMatrixSet createTiles(String table, String identifier, String description, SpatialReferenceSystem srs, BoundingBox extentBounds) Create tiles table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptionsrs
- spatial reference systemextentBounds
- crs extent bounds- Returns:
- created tile matrix set
-
createTiles
public TileMatrixSet createTiles(String table, String identifier, String description, BoundingBox informativeBounds, SpatialReferenceSystem srs, BoundingBox extentBounds) Create tiles table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptioninformativeBounds
- informative contents boundssrs
- spatial reference systemextentBounds
- crs extent bounds- Returns:
- created tile matrix set
-
createTileMatrices
public void createTileMatrices(TileMatrixSet tileMatrixSet, long minZoom, long maxZoom, long matrixWidth, long matrixHeight) Create tile matrices for zoom levels- Parameters:
tileMatrixSet
- tile matrix setminZoom
- min zoom levelmaxZoom
- max zoom levelmatrixWidth
- matrix widthmatrixHeight
- matrix height
-
createTileMatrices
public void createTileMatrices(String table, BoundingBox boundingBox, long minZoom, long maxZoom, long matrixWidth, long matrixHeight) Create tile matrices for zoom levels- Parameters:
table
- table nameboundingBox
- bounding boxminZoom
- min zoom levelmaxZoom
- max zoom levelmatrixWidth
- matrix widthmatrixHeight
- matrix height
-
createTileMatrices
public void createTileMatrices(TileMatrixSet tileMatrixSet, Collection<Long> zoomLevels, long matrixWidth, long matrixHeight) Create tile matrices for zoom levels- Parameters:
tileMatrixSet
- tile matrix setzoomLevels
- zoom levelsmatrixWidth
- matrix widthmatrixHeight
- matrix height
-
createTileMatrices
public void createTileMatrices(String table, BoundingBox boundingBox, Collection<Long> zoomLevels, long matrixWidth, long matrixHeight) Create tile matrices for zoom levels- Parameters:
table
- table nameboundingBox
- bounding boxzoomLevels
- zoom levelsmatrixWidth
- matrix widthmatrixHeight
- matrix height
-
createTileMatrix
public void createTileMatrix(TileMatrixSet tileMatrixSet, long zoom, long matrixWidth, long matrixHeight) Create a tile matrix for a zoom level- Parameters:
tileMatrixSet
- tile matrix setzoom
- zoom levelmatrixWidth
- matrix widthmatrixHeight
- matrix height
-
createTileMatrix
public void createTileMatrix(String table, BoundingBox boundingBox, long zoom, long matrixWidth, long matrixHeight) Create a tile matrix for a zoom level- Parameters:
table
- table nameboundingBox
- bounding boxzoom
- zoom levelmatrixWidth
- matrix widthmatrixHeight
- matrix height
-
createTileMatrix
public void createTileMatrix(String table, long zoom, long matrixWidth, long matrixHeight, double pixelXSize, double pixelYSize) Create a tile matrix for a zoom level- Parameters:
table
- table namezoom
- zoom levelmatrixWidth
- matrix widthmatrixHeight
- matrix heightpixelXSize
- pixel x sizepixelYSize
- pixel y size
-
createFeatures
public GeometryColumns createFeatures(String table, GeometryType geometryType, CoordinateReferenceSystem crs) Create features table- Parameters:
table
- table namegeometryType
- geometry typecrs
- coordinate reference system- Returns:
- created geometry columns
-
createFeatures
public GeometryColumns createFeatures(String table, GeometryType geometryType, List<FeatureColumn> columns, CoordinateReferenceSystem crs) Create features table- Parameters:
table
- table namegeometryType
- geometry typecolumns
- feature columnscrs
- coordinate reference system- Returns:
- created geometry columns
-
createFeatures
public GeometryColumns createFeatures(String table, String identifier, String description, GeometryType geometryType, CoordinateReferenceSystem crs) Create features table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptiongeometryType
- geometry typecrs
- coordinate reference system- Returns:
- created geometry columns
-
createFeatures
public GeometryColumns createFeatures(String table, String identifier, String description, GeometryType geometryType, List<FeatureColumn> columns, CoordinateReferenceSystem crs) Create features table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptiongeometryType
- geometry typecolumns
- feature columnscrs
- coordinate reference system- Returns:
- created geometry columns
-
createFeatures
public GeometryColumns createFeatures(String table, BoundingBox bounds, GeometryType geometryType, CoordinateReferenceSystem crs) Create features table- Parameters:
table
- table namebounds
- contents boundsgeometryType
- geometry typecrs
- coordinate reference system- Returns:
- created geometry columns
-
createFeatures
public GeometryColumns createFeatures(String table, BoundingBox bounds, GeometryType geometryType, List<FeatureColumn> columns, CoordinateReferenceSystem crs) Create features table- Parameters:
table
- table namebounds
- contents boundsgeometryType
- geometry typecolumns
- feature columnscrs
- coordinate reference system- Returns:
- created geometry columns
-
createFeatures
public GeometryColumns createFeatures(String table, String identifier, String description, BoundingBox bounds, GeometryType geometryType, CoordinateReferenceSystem crs) Create features table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptionbounds
- contents boundsgeometryType
- geometry typecrs
- coordinate reference system- Returns:
- created geometry columns
-
createFeatures
public GeometryColumns createFeatures(String table, String identifier, String description, BoundingBox bounds, GeometryType geometryType, List<FeatureColumn> columns, CoordinateReferenceSystem crs) Create features table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptionbounds
- contents boundsgeometryType
- geometry typecolumns
- feature columnscrs
- coordinate reference system- Returns:
- created geometry columns
-
createFeatures
public GeometryColumns createFeatures(String table, BoundingBox bounds, GeometryType geometryType, DataType dataType, SpatialReferenceSystem srs) Create features table- Parameters:
table
- table namebounds
- contents boundsgeometryType
- geometry typedataType
- data typesrs
- spatial reference system- Returns:
- created geometry columns
-
createFeatures
public GeometryColumns createFeatures(String table, BoundingBox bounds, GeometryType geometryType, DataType dataType, List<FeatureColumn> columns, SpatialReferenceSystem srs) Create features table- Parameters:
table
- table namebounds
- contents boundsgeometryType
- geometry typedataType
- data typecolumns
- feature columnssrs
- spatial reference system- Returns:
- created geometry columns
-
createFeatures
public GeometryColumns createFeatures(String table, String identifier, String description, BoundingBox bounds, GeometryType geometryType, DataType dataType, SpatialReferenceSystem srs) Create features table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptionbounds
- contents boundsgeometryType
- geometry typedataType
- data typesrs
- spatial reference system- Returns:
- created geometry columns
-
createFeatures
public GeometryColumns createFeatures(String table, String identifier, String description, BoundingBox bounds, GeometryType geometryType, DataType dataType, List<FeatureColumn> columns, SpatialReferenceSystem srs) Create features table- Parameters:
table
- table nameidentifier
- contents identifierdescription
- contents descriptionbounds
- contents boundsgeometryType
- geometry typedataType
- data typecolumns
- feature columnssrs
- spatial reference system- Returns:
- created geometry columns
-
createMetadata
Create metadata and metadata reference- Parameters:
metadata
- metadatareference
- metadata reference
-
createMetadata
Create metadata- Parameters:
metadata
- metadata
-
createMetadataReference
Create metadata reference- Parameters:
metadata
- the reference metadatareference
- metadata reference
-
createMetadataReference
Create metadata reference- Parameters:
reference
- metadata reference
-
createGeoPackageSeriesMetadata
Create GeoPackage metadata with a series scope and metadata reference- Parameters:
uri
- URImetadata
- metadata- Returns:
- metadata reference
-
createGeoPackageDatasetMetadata
Create GeoPackage metadata with a dataset scope and metadata reference- Parameters:
uri
- URImetadata
- metadata- Returns:
- metadata reference
-
createGeoPackageMetadata
public MetadataReference createGeoPackageMetadata(MetadataScopeType scope, String uri, String metadata) Create GeoPackage metadata and metadata reference- Parameters:
scope
- metadata scope typeuri
- URImetadata
- metadata- Returns:
- metadata reference
-
createMetadata
public MetadataReference createMetadata(MetadataScopeType scope, String uri, String metadata, MetadataReference reference) Create metadata and metadata reference- Parameters:
scope
- metadata scope typeuri
- URImetadata
- metadatareference
- metadata reference- Returns:
- metadata reference
-
queryGeoPackageDMFMetadata
Query for GeoPackage DGIWG Metadata Foundation (DMF) metadata- Returns:
- metadata references
-
queryGeoPackageNASMetadata
Query for GeoPackage NSG Metadata Foundation (NMF) NSG Application Schema (NAS) metadata- Returns:
- metadata references
-
queryGeoPackageMetadata
Query for GeoPackage metadata- Parameters:
baseURI
- base URI- Returns:
- metadata references
-