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 void
copyGriddedCoverage(String table, String newTable)
Copy the Gridded Coverage extensions for the tablevoid
copyMetadata(String table, String newTable)
Copy the Metadata extensions for the tablevoid
copyRelatedTables(String table, String newTable)
Copy the Related Tables extensions for the tablevoid
copyRTreeSpatialIndex(String table, String newTable)
Copy the RTree Spatial extension for the tablevoid
copySchema(String table, String newTable)
Copy the Schema extensions for the tablevoid
copyTableExtensions(String table, String newTable)
Copy all table extensions for the tablevoid
deleteCrsWktExtension()
Delete the WKT for Coordinate Reference Systems extensionvoid
deleteExtensions()
Delete all extensions including custom extension tablesvoid
deleteGriddedCoverage(String table)
Delete the Gridded Coverage extensions for the tablevoid
deleteGriddedCoverageExtension()
Delete the Gridded Coverage extensionvoid
deleteMetadata(String table)
Delete the Metadata extensions for the tablevoid
deleteMetadataExtension()
Delete the Metadata extensionvoid
deleteRelatedTables(String table)
Delete the Related Tables extensions for the tablevoid
deleteRelatedTablesExtension()
Delete the Related Tables extensionvoid
deleteRTreeSpatialIndex(String table)
Delete the RTree Spatial extension for the tablevoid
deleteRTreeSpatialIndexExtension()
Delete the RTree Spatial extensionvoid
deleteSchema(String table)
Delete the Schema extensions for the tablevoid
deleteSchemaExtension()
Delete the Schema extensionvoid
deleteTableExtensions(String table)
Delete all table extensions for the tableString
getAuthor()
Get the extension authorstatic RTreeIndexCoreExtension
getRTreeIndexExtension(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:
getAuthor
in classExtensionManagement
- Returns:
- author
-
deleteTableExtensions
public void deleteTableExtensions(String table)
Delete all table extensions for the table- Specified by:
deleteTableExtensions
in classExtensionManagement
- Parameters:
table
- table name
-
deleteExtensions
public void deleteExtensions()
Delete all extensions including custom extension tables- Specified by:
deleteExtensions
in classExtensionManagement
-
copyTableExtensions
public void copyTableExtensions(String table, String newTable)
Copy all table extensions for the table- Specified by:
copyTableExtensions
in 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
-
-