Package org.geotools.coverage.grid

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


      }
      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

      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

      }
      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

        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.