public static void deleteGeometryIndex ( GeoPackageCore geoPackage , String table ) { TableIndexDao tableIndexDao = geoPackage . getTableIndexDao ( ) ; ExtensionsDao extensionsDao = geoPackage . getExtensionsDao ( ) ; try { if ( tableIndexDao . isTableExists ( ) ) { tableIndexDao . deleteByIdCascade ( table ) ; } if ( extensionsDao . isTableExists ( ) ) { extensionsDao . deleteByExtension ( FeatureTableCoreIndex . EXTENSION_NAME , table ) ; } } catch ( SQLException e ) { throw new GeoPackageException ( "Failed to delete Table Index. GeoPackage: " + geoPackage . getName ( ) + ", Table: " + table , e ) ; } }
Delete the Geometry Index extension for the table