Examples of OverviewPolicy


Examples of org.geotools.coverage.grid.io.OverviewPolicy

    // do we have parameters to use for reading from the specified source
    //
    // /////////////////////////////////////////////////////////////////////
    GeneralEnvelope requestedEnvelope = null;
    Rectangle dim = null;
    OverviewPolicy overviewPolicy=null;
    if (params != null) {
      // /////////////////////////////////////////////////////////////////////
      //
      // Checking params
      //
View Full Code Here

Examples of org.geotools.coverage.grid.io.OverviewPolicy

        // Init overview policy
        //
        // //
        // when policy is explictly provided it overrides the policy provided
        // using hints.
        final OverviewPolicy policy;
        if (overviewPolicy == null)
            policy = rasterManager.overviewPolicy;
        else
            policy = overviewPolicy;

        // requested to ignore overviews
        if (policy.equals(OverviewPolicy.IGNORE))
            return imageChoice;

        // overviews and decimation
        imageChoice = request.imageManager.overviewsController.pickOverviewLevel(
                overviewPolicy, request);
View Full Code Here

Examples of org.geotools.coverage.grid.io.OverviewPolicy

                    spans[i] = requestedGrid.getSpan(i);
                    resolutions[i] = requestedEnvelope.getSpan(i) / spans[i];
                }
               
                // adjust the spans based on the overview policy
                OverviewPolicy policy = info.getOverviewPolicy();
                double[] readResoutions = reader.getReadingResolutions(policy, resolutions);
                double[] baseResolutions = reader.getReadingResolutions(OverviewPolicy.IGNORE, resolutions);
                for (int i = 0; i < spans.length; i++) {
                    spans[i] *= readResoutions[i] / baseResolutions[i];
                }
View Full Code Here

Examples of org.geotools.coverage.grid.io.OverviewPolicy

                    spans[i] = requestedGrid.getSpan(i);
                    resolutions[i] = requestedEnvelope.getSpan(i) / spans[i];
                }
               
                // adjust the spans based on the overview policy
                OverviewPolicy policy = info.getOverviewPolicy();
                double[] readResoutions = reader.getReadingResolutions(policy, resolutions);
                double[] baseResolutions = reader.getReadingResolutions(OverviewPolicy.IGNORE, resolutions);
                for (int i = 0; i < spans.length; i++) {
                    spans[i] *= readResoutions[i] / baseResolutions[i];
                }
View Full Code Here

Examples of org.geotools.coverage.grid.io.OverviewPolicy

        // notice that for the moment we support only homogeneous interpolation on the 2D axis
        final Map<String, InterpolationPolicy> axesInterpolations = extractInterpolation(reader,
                extensions);
        final Interpolation spatialInterpolation = extractSpatialInterpolation(axesInterpolations,
                reader.getOriginalEnvelope());
        final OverviewPolicy overviewPolicy = extractOverviewPolicy(extensions);
        // TODO time interpolation
        assert spatialInterpolation != null;

        // build the grid coverage request
        GridCoverageRequest gcr = new GridCoverageRequest();
View Full Code Here

Examples of org.geotools.coverage.grid.io.OverviewPolicy

        return coverage;
    }

    private MathTransform getMathTransform(GridCoverage2DReader reader, Envelope subset,
            GridCoverageRequest request, PixelInCell pixelInCell, ScalingType scaling, double[] preAppliedScale) throws IOException {
        final OverviewPolicy overviewPolicy = request.getOverviewPolicy();
        ScalingPolicy scalingPolicy = scaling == null ? null : ScalingPolicy.getPolicy(scaling);
        if (overviewPolicy == null || overviewPolicy == OverviewPolicy.IGNORE || scaling == null ||
                scalingPolicy == null || scalingPolicy == ScalingPolicy.ScaleToExtent) {
            return reader.getOriginalGridToWorld(pixelInCell);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.