public boolean deleteIndex ( FeatureIndexType type , long geomId ) { if ( type == null ) { throw new GeoPackageException ( "FeatureIndexType is required to delete index" ) ; } boolean deleted = false ; switch ( type ) { case GEOPACKAGE : deleted = featureTableIndex . deleteIndex ( geomId ) > 0 ; break ; case METADATA : deleted = featureIndexer . deleteIndex ( geomId ) ; break ; case RTREE : // Updated by triggers, ignore for RTree deleted = true ; break ; default : throw new GeoPackageException ( "Unsupported FeatureIndexType: " + type ) ; } return deleted ; }
Delete the feature index for the geometry id