geopackage-sdk/src/main/java/mil/nga/geopackage/db/metadata/GeometryMetadataDataSource.java
public BoundingBox getBoundingBox(long geoPackageId, String tableName) {

        BoundingBox boundingBox = null;

        Cursor result = db.rawQuery("SELECT MIN(" + GeometryMetadata.COLUMN_MIN_X + "), MIN("
                        + GeometryMetadata.COLUMN_MIN_Y + "), MAX("
                        + GeometryMetadata.COLUMN_MAX_X + "), MAX("
                        + GeometryMetadata.COLUMN_MAX_Y + ") FROM "
                        + GeometryMetadata.TABLE_NAME
                        + " WHERE " + GeometryMetadata.COLUMN_GEOPACKAGE_ID + " = ? AND "
                        + GeometryMetadata.COLUMN_TABLE_NAME + " = ?",
                new String[]{String.valueOf(geoPackageId), tableName});
        try {
            if (result.moveToNext()) {
                boundingBox = new BoundingBox(result.getDouble(0),
                        result.getDouble(1), result.getDouble(2),
                        result.getDouble(3));
            }
        } finally {
            result.close();
        }

        return boundingBox;
    }
public BoundingBox getBoundingBox(long geoPackageId, String tableName) {

        BoundingBox boundingBox = null;

        Cursor result = db.rawQuery("SELECT MIN(" + GeometryMetadata.COLUMN_MIN_X + "), MIN("
                        + GeometryMetadata.COLUMN_MIN_Y + "), MAX("
                        + GeometryMetadata.COLUMN_MAX_X + "), MAX("
                        + GeometryMetadata.COLUMN_MAX_Y + ") FROM "
                        + GeometryMetadata.TABLE_NAME
                        + " WHERE " + GeometryMetadata.COLUMN_GEOPACKAGE_ID + " = ? AND "
                        + GeometryMetadata.COLUMN_TABLE_NAME + " = ?",
                new String[]{String.valueOf(geoPackageId), tableName});
        try {
            if (result.moveToNext()) {
                boundingBox = new BoundingBox(result.getDouble(0),
                        result.getDouble(1), result.getDouble(2),
                        result.getDouble(3));
            }
        } finally {
            result.close();
        }

        return boundingBox;
    }
public BoundingBox getBoundingBox ( long geoPackageId , String tableName ) { BoundingBox boundingBox = null ; Cursor result = db . rawQuery ( "SELECT MIN(" + GeometryMetadata . COLUMN_MIN_X + "), MIN(" + GeometryMetadata . COLUMN_MIN_Y + "), MAX(" + GeometryMetadata . COLUMN_MAX_X + "), MAX(" + GeometryMetadata . COLUMN_MAX_Y + ") FROM " + GeometryMetadata . TABLE_NAME + " WHERE " + GeometryMetadata . COLUMN_GEOPACKAGE_ID + " = ? AND " + GeometryMetadata . COLUMN_TABLE_NAME + " = ?" , new String [ ] { String . valueOf ( geoPackageId ) , tableName } ) ; try { if ( result . moveToNext ( ) ) { boundingBox = new BoundingBox ( result . getDouble ( 0 ) , result . getDouble ( 1 ) , result . getDouble ( 2 ) , result . getDouble ( 3 ) ) ; } } finally { result . close ( ) ; } return boundingBox ; }
Query for the bounds of the feature table index

@param geoPackageId GeoPackage id
@param tableName    table name
@return bounding box
@since 3.1.0
Query for the bounds of the feature table index