Examples of geophysics()


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

    @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

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

    @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

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

        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

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

      m_LayerExtent = new GridExtent();
      m_LayerExtent.setCellSize((env.getMaxX() - env.getMinX())
                / (double)gc.getRenderedImage().getWidth());
      m_LayerExtent.setXRange(env.getMinX(), env.getMaxX());
      m_LayerExtent.setYRange(env.getMinY(), env.getMaxY());
      m_image = (PlanarImage) gc.geophysics(true).getRenderedImage();
      m_sName = gc.getName().toString();
      initNoData(gc);
    }

  }
View Full Code Here

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

      }
      else{
        writer = new GeoTiffWriter(new File(m_sFilename));
      }
      GridCoverage2D gc = (GridCoverage2D) m_BaseDataObject;
      writer.write(gc.geophysics(true), null);
      writer.dispose();
    }catch (Exception e){
      e.printStackTrace();
    }
View Full Code Here

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

      m_LayerExtent = new GridExtent();
      m_LayerExtent.setCellSize((env.getMaxX() - env.getMinX())
                / (double)gc.getRenderedImage().getWidth());
      m_LayerExtent.setXRange(env.getMinX(), env.getMaxX());
      m_LayerExtent.setYRange(env.getMinY(), env.getMaxY());
      m_image = (PlanarImage) gc.geophysics(true).getRenderedImage();
      m_sName = gc.getName().toString();
      initNoData(gc);
    }

  }
View Full Code Here

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

      }
      else{
        writer = new GeoTiffWriter(new File(m_sFilename));
      }
      GridCoverage2D gc = (GridCoverage2D) m_BaseDataObject;
      writer.write(gc.geophysics(true), null);
      writer.dispose();
    }catch (Exception e){
      e.printStackTrace();
    }
View Full Code Here

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

        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.