Package org.geotools.gce.OverviewsController

Examples of org.geotools.gce.OverviewsController.OverviewLevel


            readParameters.setSourceSubsampling(1, 1, 0, 0);
            return;
        }

        double selectedRes[] = new double[2];
        final OverviewLevel level = overviewsController.resolutionsLevels.get(levelIndex);
        selectedRes[0] = level.resolutionX;
        selectedRes[1] = level.resolutionY;

        final int rasterWidth, rasterHeight;
        if (levelIndex == 0) {
View Full Code Here


            final AffineTransform g2w = new AffineTransform((AffineTransform) baseGridToWorld);
            // move it to the corner
            g2w.concatenate(CoverageUtilities.CENTER_TO_CORNER);

            // keep into account levels and subsampling
            final OverviewLevel level = rasterManager.overviewsController.resolutionsLevels.get(overviewsLevel);
            final OverviewLevel baseLevel = rasterManager.overviewsController.resolutionsLevels.get(0);
            final AffineTransform2D adjustments = new AffineTransform2D(
                    (level.resolutionX / baseLevel.resolutionX)
                            * baseReadParameters.getSourceXSubsampling(), 0, 0,
                    (level.resolutionY / baseLevel.resolutionY)
                            * baseReadParameters.getSourceYSubsampling(), 0, 0);
View Full Code Here

            //
            requestedBBox = rasterManager.spatialDomainManager.coverageBBox;
            cropBBox = rasterManager.spatialDomainManager.coverageBBox;
            requestedRasterArea = (Rectangle) rasterManager.spatialDomainManager.coverageRasterArea.clone();
            destinationRasterArea = (Rectangle) rasterManager.spatialDomainManager.coverageRasterArea.clone();
            final OverviewLevel highestResLevel = rasterManager.overviewsController.resolutionsLevels.get(0);
            requestedResolution = new double[]{
                    highestResLevel.resolutionX,
                    highestResLevel.resolutionY,
            };
            // TODO harmonize the various types of transformations
View Full Code Here

        //
        // use the coverage resolution since we cannot compute the requested one
        //
        LOGGER.log(Level.WARNING, "Unable to compute requested resolution, using highest available");
        final OverviewLevel highestResLevel = rasterManager.overviewsController.resolutionsLevels.get(0);
        requestedResolution = new double[]{
                highestResLevel.resolutionX,
                highestResLevel.resolutionY,
        };
View Full Code Here

TOP

Related Classes of org.geotools.gce.OverviewsController.OverviewLevel

Copyright © 2018 www.massapicom. 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.