Package mil.nga.geopackage.dgiwg
Class DGIWGGeoPackageManager
java.lang.Object
mil.nga.geopackage.GeoPackageManagerImpl
mil.nga.geopackage.dgiwg.DGIWGGeoPackageManager
- All Implemented Interfaces:
GeoPackageManager
DGIWG (Defence Geospatial Information Working Group) GeoPackage Manager used
to create and open GeoPackages
- Since:
- 6.7.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a GeoPackageCreate a GeoPackagecreateAtPath
(String database, File path, String metadata) Create a new GeoPackage database at the provided directory pathcreateAtPath
(String database, File path, String uri, String metadata) Create a new GeoPackage database at the provided directory pathcreateFile
(androidx.documentfile.provider.DocumentFile file, String metadata) Create a new GeoPackage database at the specified file locationcreateFile
(androidx.documentfile.provider.DocumentFile file, String uri, String metadata) Create a new GeoPackage database at the specified file locationcreateFile
(File file, String metadata) Create a new GeoPackage database at the specified file locationcreateFile
(File file, String uri, String metadata) Create a new GeoPackage database at the specified file locationcreateFile
(String database, androidx.documentfile.provider.DocumentFile file, String metadata) Create a new GeoPackage database at the specified file location with the provided namecreateFile
(String database, androidx.documentfile.provider.DocumentFile file, String uri, String metadata) Create a new GeoPackage database at the specified file location with the provided namecreateFile
(String database, File file, String metadata) Create a new GeoPackage database at the specified file location with the provided namecreateFile
(String database, File file, String uri, String metadata) Create a new GeoPackage database at the specified file location with the provided nameboolean
delete
(GeoPackageFile file) Delete the databasestatic boolean
isValid
(DGIWGGeoPackage geoPackage) Is the GeoPackage valid according to the DGIWG GeoPackage ProfileOpen the databaseopen
(boolean validate, GeoPackageFile file) Open the databaseOpen the databaseOpen the databaseOpen the databaseopen
(GeoPackageFile file) Open the databaseopen
(GeoPackageFile file, boolean writable) Open the databaseopen
(GeoPackageFile file, boolean writable, boolean validate) Open the databasestatic DGIWGValidationErrors
validate
(DGIWGGeoPackage geoPackage) Validate the GeoPackage against the DGIWG GeoPackage ProfileMethods inherited from class mil.nga.geopackage.GeoPackageManagerImpl
copy, copy, count, create, createAtPath, createFile, createFile, createFile, createFile, databases, databaseSet, databasesLike, databasesNotLike, delete, deleteAll, deleteAllExternal, deleteAllMissingExternal, exists, existsAtExternalFile, existsAtExternalFile, existsAtExternalPath, exportGeoPackage, exportGeoPackage, exportGeoPackage, exportGeoPackage, exportGeoPackage, exportGeoPackage, exportGeoPackage, exportGeoPackage, exportGeoPackage, exportGeoPackage, exportGeoPackage, exportGeoPackage, externalCount, externalDatabases, externalDatabaseSet, getContext, getDatabase, getDatabaseAtExternalFile, getDatabaseAtExternalFile, getDatabaseAtExternalPath, getDocumentFile, getFile, getFile, getIgnoredInternals, getPath, ignoreInternal, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackage, importGeoPackageAsExternalLink, importGeoPackageAsExternalLink, importGeoPackageAsExternalLink, importGeoPackageAsExternalLink, importGeoPackageAsExternalLink, importGeoPackageAsExternalLink, importGeoPackageAsExternalLink, importGeoPackageAsExternalLink, importGeoPackageAsExternalLink, importGeoPackageAsExternalLink, importGeoPackageAsExternalLink, importGeoPackageAsExternalLink, includeInternal, internalCount, internalDatabases, internalDatabaseSet, isExternal, isIgnoredInternal, isImportHeaderValidation, isImportIntegrityValidation, isOpenHeaderValidation, isOpenIntegrityValidation, isSqliteWriteAheadLogging, openExternal, openExternal, openExternal, openExternal, openExternal, openExternal, readableSize, rename, setImportHeaderValidation, setImportIntegrityValidation, setOpenHeaderValidation, setOpenIntegrityValidation, setSqliteWriteAheadLogging, size, validate, validateHeader, validateIntegrity
-
Constructor Details
-
DGIWGGeoPackageManager
Constructor- Parameters:
context
- context
-
-
Method Details
-
create
Create a GeoPackage- Parameters:
database
- database namemetadata
- metadata- Returns:
- GeoPackage file if created
-
create
Create a GeoPackage- Parameters:
database
- database nameuri
- URImetadata
- metadata- Returns:
- GeoPackage file if created
-
createAtPath
Create a new GeoPackage database at the provided directory path- Parameters:
database
- database namepath
- directory pathmetadata
- metadata- Returns:
- GeoPackage file if created
-
createAtPath
Create a new GeoPackage database at the provided directory path- Parameters:
database
- database namepath
- directory pathuri
- URImetadata
- metadata- Returns:
- GeoPackage file if created
-
createFile
Create a new GeoPackage database at the specified file location- Parameters:
file
- GeoPackage file pathmetadata
- metadata- Returns:
- GeoPackage file if created
-
createFile
Create a new GeoPackage database at the specified file location- Parameters:
file
- GeoPackage file pathuri
- URImetadata
- metadata- Returns:
- GeoPackage file if created
-
createFile
Create a new GeoPackage database at the specified file location with the provided name- Parameters:
database
- database namefile
- GeoPackage file pathmetadata
- metadata- Returns:
- GeoPackage file if created
-
createFile
Create a new GeoPackage database at the specified file location with the provided name- Parameters:
database
- database namefile
- GeoPackage file pathuri
- URImetadata
- metadata- Returns:
- GeoPackage file if created
-
createFile
Create a new GeoPackage database at the specified file location- Parameters:
file
- GeoPackage document filemetadata
- metadata- Returns:
- GeoPackage file if created
-
createFile
public GeoPackageFile createFile(androidx.documentfile.provider.DocumentFile file, String uri, String metadata) Create a new GeoPackage database at the specified file location- Parameters:
file
- GeoPackage document fileuri
- URImetadata
- metadata- Returns:
- GeoPackage file if created
-
createFile
public GeoPackageFile createFile(String database, androidx.documentfile.provider.DocumentFile file, String metadata) Create a new GeoPackage database at the specified file location with the provided name- Parameters:
database
- database namefile
- GeoPackage document filemetadata
- metadata- Returns:
- GeoPackage file if created
-
createFile
public GeoPackageFile createFile(String database, androidx.documentfile.provider.DocumentFile file, String uri, String metadata) Create a new GeoPackage database at the specified file location with the provided name- Parameters:
database
- database namefile
- GeoPackage document fileuri
- URImetadata
- metadata- Returns:
- GeoPackage file if created
-
open
Open the database- Specified by:
open
in interfaceGeoPackageManager
- Overrides:
open
in classGeoPackageManagerImpl
- Parameters:
database
- database name- Returns:
- open GeoPackage
-
open
Open the database- Specified by:
open
in interfaceGeoPackageManager
- Overrides:
open
in classGeoPackageManagerImpl
- Parameters:
database
- database namewritable
- true to open as writable, false as read only- Returns:
- open GeoPackage
-
open
Open the database- Parameters:
validate
- validate the GeoPackagedatabase
- database name- Returns:
- open GeoPackage
-
open
Open the database- Parameters:
database
- database namewritable
- true to open as writable, false as read onlyvalidate
- validate the GeoPackage- Returns:
- open GeoPackage
-
open
Open the database- Parameters:
file
- GeoPackage file- Returns:
- open GeoPackage
-
open
Open the database- Parameters:
file
- GeoPackage filewritable
- true to open as writable, false as read only- Returns:
- open GeoPackage
-
open
Open the database- Parameters:
validate
- validate the GeoPackagefile
- GeoPackage file- Returns:
- open GeoPackage
-
open
Open the database- Parameters:
file
- GeoPackage filewritable
- true to open as writable, false as read onlyvalidate
- validate the GeoPackage- Returns:
- open GeoPackage
-
delete
Delete the database- Parameters:
file
- GeoPackage file- Returns:
- true if deleted
-
isValid
Is the GeoPackage valid according to the DGIWG GeoPackage Profile- Parameters:
geoPackage
- GeoPackage- Returns:
- true if valid
-
validate
Validate the GeoPackage against the DGIWG GeoPackage Profile- Parameters:
geoPackage
- GeoPackage- Returns:
- validation errors
-