Class ExtensionManager


  • public class ExtensionManager
    extends ExtensionManagement
    GeoPackage Extension Manager for deleting and copying extensions
    Since:
    4.0.0
    Author:
    osbornb
    • Constructor Detail

      • ExtensionManager

        public ExtensionManager​(GeoPackageCore geoPackage)
        Constructor
        Parameters:
        geoPackage - GeoPackage
    • Method Detail

      • copyTableExtensions

        public void copyTableExtensions​(String table,
                                        String newTable)
        Copy all table extensions for the table
        Specified by:
        copyTableExtensions in class ExtensionManagement
        Parameters:
        table - table name
        newTable - 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 name
        newTable - 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 name
        newTable - 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 name
        newTable - 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 name
        newTable - 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 name
        newTable - new table name
      • deleteCrsWktExtension

        public void deleteCrsWktExtension()
        Delete the WKT for Coordinate Reference Systems extension