geopackage-sdk/src/main/java/mil/nga/geopackage/extension/coverage/CoverageData.java
@Override
    public CoverageDataResults getValuesUnbounded(CoverageDataRequest request) {

        CoverageDataResults coverageDataResults = null;

        // Transform to the projection of the coverage data tiles
        ProjectionTransform transformRequestToCoverage = null;
        BoundingBox requestProjectedBoundingBox = request.getBoundingBox();
        if (!sameProjection) {
            transformRequestToCoverage = requestProjection
                    .getTransformation(coverageProjection);
            requestProjectedBoundingBox = requestProjectedBoundingBox
                    .transform(transformRequestToCoverage);
        }
        request.setProjectedBoundingBox(requestProjectedBoundingBox);

        // Find the tile matrix and results
        CoverageDataTileMatrixResults results = getResults(request,
                requestProjectedBoundingBox);

        if (results != null) {

            TileMatrix tileMatrix = results.getTileMatrix();
            TileCursor tileResults = results.getTileResults();

            try {

                // Retrieve the coverage data values from the results
                Double[][] values = getValuesUnbounded(tileMatrix,
                        tileResults, request);

                // Project the coverage data if needed
                if (values != null && !sameProjection && !request.isPoint()) {
                    values = reprojectCoverageData(values,
                            values[0].length, values.length,
                            request.getBoundingBox(),
                            transformRequestToCoverage,
                            requestProjectedBoundingBox);
                }

                // Create the results
                if (values != null) {
                    coverageDataResults = new CoverageDataResults(values,
                            tileMatrix);
                }

            } finally {
                tileResults.close();
            }
        }

        return coverageDataResults;
    }
@Override
    public CoverageDataResults getValuesUnbounded(CoverageDataRequest request) {

        CoverageDataResults coverageDataResults = null;

        // Transform to the projection of the coverage data tiles
        ProjectionTransform transformRequestToCoverage = null;
        BoundingBox requestProjectedBoundingBox = request.getBoundingBox();
        if (!sameProjection) {
            transformRequestToCoverage = requestProjection
                    .getTransformation(coverageProjection);
            requestProjectedBoundingBox = requestProjectedBoundingBox
                    .transform(transformRequestToCoverage);
        }
        request.setProjectedBoundingBox(requestProjectedBoundingBox);

        // Find the tile matrix and results
        CoverageDataTileMatrixResults results = getResults(request,
                requestProjectedBoundingBox);

        if (results != null) {

            TileMatrix tileMatrix = results.getTileMatrix();
            TileCursor tileResults = results.getTileResults();

            try {

                // Retrieve the coverage data values from the results
                Double[][] values = getValuesUnbounded(tileMatrix,
                        tileResults, request);

                // Project the coverage data if needed
                if (values != null && !sameProjection && !request.isPoint()) {
                    values = reprojectCoverageData(values,
                            values[0].length, values.length,
                            request.getBoundingBox(),
                            transformRequestToCoverage,
                            requestProjectedBoundingBox);
                }

                // Create the results
                if (values != null) {
                    coverageDataResults = new CoverageDataResults(values,
                            tileMatrix);
                }

            } finally {
                tileResults.close();
            }
        }

        return coverageDataResults;
    }
@ Override public CoverageDataResults getValuesUnbounded ( CoverageDataRequest request ) { CoverageDataResults coverageDataResults = null ; // Transform to the projection of the coverage data tiles ProjectionTransform transformRequestToCoverage = null ; BoundingBox requestProjectedBoundingBox = request . getBoundingBox ( ) ; if ( ! sameProjection ) { transformRequestToCoverage = requestProjection . getTransformation ( coverageProjection ) ; requestProjectedBoundingBox = requestProjectedBoundingBox . transform ( transformRequestToCoverage ) ; } request . setProjectedBoundingBox ( requestProjectedBoundingBox ) ; // Find the tile matrix and results CoverageDataTileMatrixResults results = getResults ( request , requestProjectedBoundingBox ) ; if ( results != null ) { TileMatrix tileMatrix = results . getTileMatrix ( ) ; TileCursor tileResults = results . getTileResults ( ) ; try { // Retrieve the coverage data values from the results Double [ ] [ ] values = getValuesUnbounded ( tileMatrix , tileResults , request ) ; // Project the coverage data if needed if ( values != null && ! sameProjection && ! request . isPoint ( ) ) { values = reprojectCoverageData ( values , values [ 0 ] . length , values . length , request . getBoundingBox ( ) , transformRequestToCoverage , requestProjectedBoundingBox ) ; } // Create the results if ( values != null ) { coverageDataResults = new CoverageDataResults ( values , tileMatrix ) ; } } finally { tileResults . close ( ) ; } } return coverageDataResults ; }
{@inheritDoc}
{