Package org.openjump.core.rasterimage
Class GridFloat
- java.lang.Object
-
- org.openjump.core.rasterimage.GridFloat
-
public class GridFloat extends Object
-
-
Constructor Summary
Constructors Constructor Description GridFloat(String fltFullFileName)GridFloat(String fltFullFileName, int nCols, int nRows, boolean origCorner, double xllOrig, double yllOrig, double cellSize, double noData, ByteOrder byteOrder)GridFloat(String fltFullFileName, GridFloat gridFloat2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferedImagegetBufferedImage()ByteOrdergetByteOrder()longgetCellCount()doublegetCellSize()float[]getFloatArray()doublegetMaxVal()doublegetMeanVal()doublegetMinVal()intgetnCols()doublegetNoData()intgetnRows()booleangetOrigCorner()RastergetRaster()doublegetStDevVal()doublegetXllCorner()doublegetYllCorner()booleanisInteger()booleanisSpatiallyEqualTo(GridFloat gridFloat2)doublereadCellVal(Integer col, Integer row)voidreadGrid(Rectangle subset)voidsetByteOrder(ByteOrder byteOrder)voidsetCellSize(double cellSize)voidsetFltFullFileName(String fltFullFileName)voidsetnCols(int nCols)voidsetNoData(double noData)voidsetnRows(int nRows)voidsetOrigCorner(boolean origCorner)voidsetRas(Raster raster)voidsetXllCorner(double xllCorner)voidsetYllCorner(double yllCorner)voidwriteGrid()voidwriteHdr()
-
-
-
Field Detail
-
LSBFIRST
public static final String LSBFIRST
- See Also:
- Constant Field Values
-
MSBFIRST
public static final String MSBFIRST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GridFloat
public GridFloat(String fltFullFileName) throws IOException
- Throws:
IOException
-
-
Method Detail
-
writeHdr
public void writeHdr() throws IOException- Throws:
IOException
-
readGrid
public void readGrid(Rectangle subset) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
writeGrid
public void writeGrid() throws IOException- Throws:
IOException
-
setFltFullFileName
public void setFltFullFileName(String fltFullFileName)
-
isSpatiallyEqualTo
public boolean isSpatiallyEqualTo(GridFloat gridFloat2)
-
getBufferedImage
public BufferedImage getBufferedImage()
-
readCellVal
public double readCellVal(Integer col, Integer row) throws FileNotFoundException, IOException
- 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)
-
getByteOrder
public ByteOrder getByteOrder()
-
setByteOrder
public void setByteOrder(ByteOrder byteOrder)
-
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()
-
-