Class GridAscii

java.lang.Object
org.openjump.core.rasterimage.GridAscii

public class GridAscii extends Object
  • Constructor Details

    • GridAscii

      public GridAscii(String ascFullFileName) throws IOException
      Throws:
      IOException
    • GridAscii

      public GridAscii(String ascFullFileName, GridAscii gridAscii2)
    • GridAscii

      public GridAscii(String ascFullFileName, int nCols, int nRows, boolean origCorner, double xllOrig, double yllOrig, double cellSize, double noData)
  • Method Details

    • readHeader

      public final void readHeader() throws FileNotFoundException, IOException
      Throws:
      FileNotFoundException
      IOException
    • readGrid

      public void readGrid(Rectangle subset) throws FileNotFoundException, IOException
      Throws:
      FileNotFoundException
      IOException
    • writeGrid

      public void writeGrid() throws IOException, Exception
      Throws:
      IOException
      Exception
    • writeHeader

      public void writeHeader(BufferedWriter bufferedWriter) throws Exception
      Throws:
      Exception
    • setHeaderEqualTo

      public void setHeaderEqualTo(GridAscii gridAscii)
    • isSpatiallyEqualTo

      public boolean isSpatiallyEqualTo(GridAscii gridAscii2)
    • getBufferedImage

      public BufferedImage getBufferedImage() throws IOException
      Throws:
      IOException
    • readCellValue

      public double readCellValue(int col, int row) throws FileNotFoundException, IOException
      Throws:
      FileNotFoundException
      IOException
    • getnCols

      public int getnCols()
    • setnCols

      public void setnCols(int nCols)
    • getnRows

      public int getnRows()
    • setnRows

      public void setnRows(int nRows)
    • getXllCorner

      public double getXllCorner()
    • setXllCorner

      public void setXllCorner(double xllCorner)
    • getYllCorner

      public double getYllCorner()
    • setYllCorner

      public void setYllCorner(double yllCorner)
    • getOrigCorner

      public boolean getOrigCorner()
    • setOrigCorner

      public void setOrigCorner(boolean origCorner)
    • getCellSize

      public double getCellSize()
    • setCellSize

      public void setCellSize(double cellSize)
    • getNoData

      public double getNoData()
    • setNoData

      public void setNoData(double noData)
    • getRaster

      public Raster getRaster()
    • setRas

      public void setRas(Raster raster)
    • getMinVal

      public double getMinVal()
    • getMaxVal

      public double getMaxVal()
    • getMeanVal

      public double getMeanVal()
    • getStDevVal

      public double getStDevVal()
    • getCellCount

      public long getCellCount()
    • isInteger

      public boolean isInteger()
    • getFloatArray

      public float[] getFloatArray()
    • setDecimalPlaces

      public void setDecimalPlaces(Integer decimalPlaces)