Package org.geotools.coverage.grid

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


          symbolizerGC = (GridCoverage2D) rsp.getOutput();
      } else {
            symbolizerGC = preSymbolizer;
        }
        if (DEBUG) {
            writeRenderedImage( symbolizerGC.geophysics(false).getRenderedImage(),"postSymbolizer");
        }
        return symbolizerGC;
    }             

    /**
 
View Full Code Here


            return afterReprojection;
        }finally{
            if (DEBUG) {
                if(afterReprojection!=null){
                    writeRenderedImage(
                            afterReprojection.geophysics(false).getRenderedImage(),
                            "afterReprojection");
                }
            }
        }
    }
View Full Code Here

            outputCoverage=inputCoverage;
        }

        if (DEBUG) {
            writeRenderedImage(
                    outputCoverage.geophysics(false).getRenderedImage(),
                    "crop");
        }
        return outputCoverage;
       
    }
View Full Code Here

            //////******************Show Source***************************///////

            // coverage.show();
            /* Reproject the image */
            CoverageProcessor processor = CoverageProcessor.getInstance();
            coverage = coverage.geophysics(false);

            final ParameterValueGroup param = processor.getOperation("Resample").getParameters();

            param.parameter("Source").setValue(coverage);
            param.parameter("CoordinateReferenceSystem").setValue(gridCRS);
View Full Code Here

            param.parameter("CoordinateReferenceSystem").setValue(gridCRS);
            param.parameter("InterpolationType").setValue("bilinear");

            GridCoverage2D projected = (GridCoverage2D) processor.doOperation(param);
            final RenderedImage image = projected.getRenderedImage();
            projected = projected.geophysics(false);
                       
           
            WorldImageWriter writer = new WorldImageWriter((Object) (new File(
                                "/home/jezekjan/tmp/pp.png")));
                    writer.write(projected, null);
View Full Code Here

        param.parameter(arg2).setValue(value2);

        projected = (GridCoverage2D) processor.doOperation(param);

        final RenderedImage image = projected.getRenderedImage();
        projected = projected.geophysics(false);

        String operation = null;

        if (image instanceof RenderedOp) {
            operation = ((RenderedOp) image).getOperationName();
View Full Code Here

                    visual.getGridGeometry().getGridToCRS(),
                    bands, new GridCoverage[] { visual }, null);

        if (source != visual) {
            // TODO: needs to select the right type.
            return target.geophysics(true);
        }
        return target;
    }

    /**
 
View Full Code Here

    @Test
    public void testRead_32bit_REAL_1Band() throws Exception {
        GridCoverage2D coverage = testReadFullLevel0(TYPE_32BIT_REAL, 1);

        RenderedImage geophysics = coverage.geophysics(true).getRenderedImage();
        RenderedImage rendered = coverage.geophysics(false).getRenderedImage();

        ColorModel gpCm = geophysics.getColorModel();
        SampleModel gpSm = geophysics.getSampleModel();
View Full Code Here

    @Test
    public void testRead_32bit_REAL_1Band() throws Exception {
        GridCoverage2D coverage = testReadFullLevel0(TYPE_32BIT_REAL, 1);

        RenderedImage geophysics = coverage.geophysics(true).getRenderedImage();
        RenderedImage rendered = coverage.geophysics(false).getRenderedImage();

        ColorModel gpCm = geophysics.getColorModel();
        SampleModel gpSm = geophysics.getSampleModel();

        ColorModel rCm = rendered.getColorModel();
View Full Code Here

        null, null, null, null, null);
    m_BaseDataObject = gc;
    m_sName = name;
    m_sFilename = filename;
    m_LayerExtent = ge;
    m_image = (PlanarImage) gc.geophysics(true).getRenderedImage();
    initNoData((GridCoverage2D)m_BaseDataObject);

  }

  private void initNoData(GridCoverage2D gc) {
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.