Class GridAscii
java.lang.Object
org.openjump.core.rasterimage.GridAscii
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdoublefloat[]doubledoubledoubleintgetnCols()doubleintgetnRows()booleandoubledoubledoublebooleanbooleanisSpatiallyEqualTo(GridAscii gridAscii2) doublereadCellValue(int col, int row) voidfinal voidvoidsetCellSize(double cellSize) voidsetDecimalPlaces(Integer decimalPlaces) voidsetHeaderEqualTo(GridAscii gridAscii) voidsetnCols(int nCols) voidsetNoData(double noData) voidsetnRows(int nRows) voidsetOrigCorner(boolean origCorner) voidvoidsetXllCorner(double xllCorner) voidsetYllCorner(double yllCorner) voidvoidwriteHeader(BufferedWriter bufferedWriter)
-
Constructor Details
-
GridAscii
- Throws:
IOException
-
GridAscii
-
GridAscii
public GridAscii(String ascFullFileName, int nCols, int nRows, boolean origCorner, double xllOrig, double yllOrig, double cellSize, double noData)
-
-
Method Details
-
readHeader
- Throws:
FileNotFoundExceptionIOException
-
readGrid
- Throws:
FileNotFoundExceptionIOException
-
writeGrid
- Throws:
IOExceptionException
-
writeHeader
- Throws:
Exception
-
setHeaderEqualTo
-
isSpatiallyEqualTo
-
getBufferedImage
- Throws:
IOException
-
readCellValue
- Throws:
FileNotFoundExceptionIOException
-
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
-
setRas
-
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
-