Package mil.nga.geopackage.extension
Class ExtensionManager
- java.lang.Object
-
- mil.nga.geopackage.extension.ExtensionManagement
-
- mil.nga.geopackage.extension.ExtensionManager
-
public class ExtensionManager extends ExtensionManagement
GeoPackage Extension Manager for deleting and copying extensions- Since:
- 4.0.0
- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.extension.ExtensionManagement
geoPackage
-
-
Constructor Summary
Constructors Constructor Description ExtensionManager(GeoPackageCore geoPackage)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyGriddedCoverage(String table, String newTable)Copy the Gridded Coverage extensions for the tablevoidcopyMetadata(String table, String newTable)Copy the Metadata extensions for the tablevoidcopyRelatedTables(String table, String newTable)Copy the Related Tables extensions for the tablevoidcopyRTreeSpatialIndex(String table, String newTable)Copy the RTree Spatial extension for the tablevoidcopySchema(String table, String newTable)Copy the Schema extensions for the tablevoidcopyTableExtensions(String table, String newTable)Copy all table extensions for the tablevoiddeleteCrsWktExtension()Delete the WKT for Coordinate Reference Systems extensionvoiddeleteExtensions()Delete all extensions including custom extension tablesvoiddeleteGriddedCoverage(String table)Delete the Gridded Coverage extensions for the tablevoiddeleteGriddedCoverageExtension()Delete the Gridded Coverage extensionvoiddeleteMetadata(String table)Delete the Metadata extensions for the tablevoiddeleteMetadataExtension()Delete the Metadata extensionvoiddeleteRelatedTables(String table)Delete the Related Tables extensions for the tablevoiddeleteRelatedTablesExtension()Delete the Related Tables extensionvoiddeleteRTreeSpatialIndex(String table)Delete the RTree Spatial extension for the tablevoiddeleteRTreeSpatialIndexExtension()Delete the RTree Spatial extensionvoiddeleteSchema(String table)Delete the Schema extensions for the tablevoiddeleteSchemaExtension()Delete the Schema extensionvoiddeleteTableExtensions(String table)Delete all table extensions for the tableStringgetAuthor()Get the extension authorstatic RTreeIndexCoreExtensiongetRTreeIndexExtension(GeoPackageCore geoPackage)Get a RTree Index Extension used only for checking if exists and deletions-
Methods inherited from class mil.nga.geopackage.extension.ExtensionManagement
getGeoPackage
-
-
-
-
Constructor Detail
-
ExtensionManager
public ExtensionManager(GeoPackageCore geoPackage)
Constructor- Parameters:
geoPackage- GeoPackage
-
-
Method Detail
-
getAuthor
public String getAuthor()
Get the extension author- Specified by:
getAuthorin classExtensionManagement- Returns:
- author
-
deleteTableExtensions
public void deleteTableExtensions(String table)
Delete all table extensions for the table- Specified by:
deleteTableExtensionsin classExtensionManagement- Parameters:
table- table name
-
deleteExtensions
public void deleteExtensions()
Delete all extensions including custom extension tables- Specified by:
deleteExtensionsin classExtensionManagement
-
copyTableExtensions
public void copyTableExtensions(String table, String newTable)
Copy all table extensions for the table- Specified by:
copyTableExtensionsin classExtensionManagement- Parameters:
table- table namenewTable- new table name
-
deleteRTreeSpatialIndex
public void deleteRTreeSpatialIndex(String table)
Delete the RTree Spatial extension for the table- Parameters:
table- table name
-
deleteRTreeSpatialIndexExtension
public void deleteRTreeSpatialIndexExtension()
Delete the RTree Spatial extension
-
copyRTreeSpatialIndex
public void copyRTreeSpatialIndex(String table, String newTable)
Copy the RTree Spatial extension for the table- Parameters:
table- table namenewTable- new table name
-
getRTreeIndexExtension
public static RTreeIndexCoreExtension getRTreeIndexExtension(GeoPackageCore geoPackage)
Get a RTree Index Extension used only for checking if exists and deletions- Parameters:
geoPackage- GeoPackage- Returns:
- RTree index extension
- Since:
- 6.6.0
-
deleteRelatedTables
public void deleteRelatedTables(String table)
Delete the Related Tables extensions for the table- Parameters:
table- table name
-
deleteRelatedTablesExtension
public void deleteRelatedTablesExtension()
Delete the Related Tables extension
-
copyRelatedTables
public void copyRelatedTables(String table, String newTable)
Copy the Related Tables extensions for the table- Parameters:
table- table namenewTable- new table name
-
deleteGriddedCoverage
public void deleteGriddedCoverage(String table)
Delete the Gridded Coverage extensions for the table- Parameters:
table- table name
-
deleteGriddedCoverageExtension
public void deleteGriddedCoverageExtension()
Delete the Gridded Coverage extension
-
copyGriddedCoverage
public void copyGriddedCoverage(String table, String newTable)
Copy the Gridded Coverage extensions for the table- Parameters:
table- table namenewTable- new table name
-
deleteSchema
public void deleteSchema(String table)
Delete the Schema extensions for the table- Parameters:
table- table name
-
deleteSchemaExtension
public void deleteSchemaExtension()
Delete the Schema extension
-
copySchema
public void copySchema(String table, String newTable)
Copy the Schema extensions for the table- Parameters:
table- table namenewTable- new table name
-
deleteMetadata
public void deleteMetadata(String table)
Delete the Metadata extensions for the table- Parameters:
table- table name
-
deleteMetadataExtension
public void deleteMetadataExtension()
Delete the Metadata extension
-
copyMetadata
public void copyMetadata(String table, String newTable)
Copy the Metadata extensions for the table- Parameters:
table- table namenewTable- new table name
-
deleteCrsWktExtension
public void deleteCrsWktExtension()
Delete the WKT for Coordinate Reference Systems extension
-
-