geopackage-sdk/src/main/java/mil/nga/geopackage/extension/RTreeIndexTableDao.java
@Override
    public BoundingBox getBoundingBox() {

        BoundingBox boundingBox = null;

        String sql = "SELECT MIN(" + RTreeIndexExtension.COLUMN_MIN_X + "), MIN("
                + RTreeIndexExtension.COLUMN_MIN_Y + "), MAX("
                + RTreeIndexExtension.COLUMN_MAX_X + "), MAX("
                + RTreeIndexExtension.COLUMN_MAX_Y + ") FROM "
                + CoreSQLUtils.quoteWrap(getTableName());
        UserCustomCursor customCursor = rawQuery(sql, null);

        List<List<Object>> results = ResultUtils.buildResults(customCursor,
                new GeoPackageDataType[]{
                        GeoPackageDataType.DOUBLE, GeoPackageDataType.DOUBLE, GeoPackageDataType.DOUBLE, GeoPackageDataType.DOUBLE},
                1);

        if (!results.isEmpty()) {
            List<Object> resultRow = results.get(0);
            boundingBox = new BoundingBox((Double) resultRow.get(0), (Double) resultRow.get(1),
                    (Double) resultRow.get(2), (Double) resultRow.get(3));
        }

        return boundingBox;
    }
@Override
    public BoundingBox getBoundingBox() {

        BoundingBox boundingBox = null;

        String sql = "SELECT MIN(" + RTreeIndexExtension.COLUMN_MIN_X + "), MIN("
                + RTreeIndexExtension.COLUMN_MIN_Y + "), MAX("
                + RTreeIndexExtension.COLUMN_MAX_X + "), MAX("
                + RTreeIndexExtension.COLUMN_MAX_Y + ") FROM "
                + CoreSQLUtils.quoteWrap(getTableName());
        UserCustomCursor customCursor = rawQuery(sql, null);

        List<List<Object>> results = ResultUtils.buildResults(customCursor,
                new GeoPackageDataType[]{
                        GeoPackageDataType.DOUBLE, GeoPackageDataType.DOUBLE, GeoPackageDataType.DOUBLE, GeoPackageDataType.DOUBLE},
                1);

        if (!results.isEmpty()) {
            List<Object> resultRow = results.get(0);
            boundingBox = new BoundingBox((Double) resultRow.get(0), (Double) resultRow.get(1),
                    (Double) resultRow.get(2), (Double) resultRow.get(3));
        }

        return boundingBox;
    }
@ Override public BoundingBox getBoundingBox ( ) { BoundingBox boundingBox = null ; String sql = "SELECT MIN(" + RTreeIndexExtension . COLUMN_MIN_X + "), MIN(" + RTreeIndexExtension . COLUMN_MIN_Y + "), MAX(" + RTreeIndexExtension . COLUMN_MAX_X + "), MAX(" + RTreeIndexExtension . COLUMN_MAX_Y + ") FROM " + CoreSQLUtils . quoteWrap ( getTableName ( ) ) ; UserCustomCursor customCursor = rawQuery ( sql , null ) ; List < List < Object > > results = ResultUtils . buildResults ( customCursor , new GeoPackageDataType [ ] { GeoPackageDataType . DOUBLE , GeoPackageDataType . DOUBLE , GeoPackageDataType . DOUBLE , GeoPackageDataType . DOUBLE } , 1 ) ; if ( ! results . isEmpty ( ) ) { List < Object > resultRow = results . get ( 0 ) ; boundingBox = new BoundingBox ( ( Double ) resultRow . get ( 0 ) , ( Double ) resultRow . get ( 1 ) , ( Double ) resultRow . get ( 2 ) , ( Double ) resultRow . get ( 3 ) ) ; } return boundingBox ; }
{@inheritDoc}
{