Package ca.spatial.gis.raster
Class AsciiRasterReader
java.lang.Object
ca.spatial.gis.raster.RasterLineReader
ca.spatial.gis.raster.AsciiRasterReader
A class to read an ASCII raster file.
The file format that is read is roughly based on the ESRI Ascii raster format, but this is extended to allow run length encoding and automatic GZIP decoding.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
double
int
getColForX(double x)
int
double
int
int
getRowForY(double y)
boolean
nextLine()
void
rewind()
Methods inherited from class ca.spatial.gis.raster.RasterLineReader
extractVector
-
Constructor Details
-
AsciiRasterReader
- Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
close
in classRasterLineReader
-
getCurrentY
public double getCurrentY()- Specified by:
getCurrentY
in classRasterLineReader
-
getExtent2D
- Specified by:
getExtent2D
in classRasterLineReader
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in classRasterLineReader
-
rewind
- Specified by:
rewind
in classRasterLineReader
- Throws:
IOException
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in classRasterLineReader
-
getCellSize
public double getCellSize()- Specified by:
getCellSize
in classRasterLineReader
-
getMissingValue
- Specified by:
getMissingValue
in classRasterLineReader
-
getRowForY
public int getRowForY(double y)- Specified by:
getRowForY
in classRasterLineReader
-
getColForX
public int getColForX(double x)- Specified by:
getColForX
in classRasterLineReader
-
isMissing
- Specified by:
isMissing
in classRasterLineReader
-
nextLine
- Specified by:
nextLine
in classRasterLineReader
- Throws:
IOException
-