Package org.geotools.coverage.grid

Examples of org.geotools.coverage.grid.GridCoverage2D.view()


                            final GridCoverage2D coverage = readCoverage(reader, reqWidth,
                                    reqHeight, reqEnv);
                            assertNotNull("read coverage returned null", coverage);

                            RenderedImage image = coverage.view(ViewType.PHOTOGRAPHIC)
                                    .getRenderedImage();
                            // RenderedImage image =
                            // coverage.view(ViewType.NATIVE).getRenderedImage();
                            Stopwatch sw = new Stopwatch();
                            sw.start();
View Full Code Here


        System.out.println("result envelope   : " + envelope2D);

        // RenderedImage image = coverage.getRenderedImage();
        // writeToDisk(coverage, "testRead_" + tableName);

        RenderedImage image = coverage.view(ViewType.RENDERED).getRenderedImage();
        writeToDisk(image, tableName);

        writeBand(image, new int[] { 0 }, "red");
        writeBand(image, new int[] { 1 }, "green");
        writeBand(image, new int[] { 2 }, "blue");
View Full Code Here

        System.out.println("result envelope   : " + envelope2D);

        // RenderedImage image = coverage.getRenderedImage();
        // writeToDisk(coverage, "testRead_" + tableName);

        RenderedImage image = coverage.view(ViewType.RENDERED).getRenderedImage();
        writeToDisk(image, tableName);

        // writeBand(image, new int[] { 0 }, "band1");
    }
View Full Code Here

        final GridCoverageFactory factory = CoverageFactoryFinder.getGridCoverageFactory(null);

        GridCoverage2D rendered = factory.create("Merged coverage", ri,
                gg, gsd, null, null);

        rendered.view(ViewType.RENDERED).show();
    }

    public void testSame() throws InterruptedException {
        GridCoverage2D src = createTestCoverage(500, 500, 0,0, 10,10);
        GridCoverage2D dst = createTestCoverage(500, 500, 0,0, 10,10);
View Full Code Here

        final GridCoverageFactory factory = CoverageFactoryFinder.getGridCoverageFactory(null);

        GridCoverage2D rendered = factory.create("Merged coverage", ri,
                gg, gsd, null, null);

        rendered.view(ViewType.RENDERED).show();
    }

    @Test
    public void testSame() throws InterruptedException {
        GridCoverage2D src = createTestCoverage(500, 500, 0,0, 10,10);
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.