|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.gce.arcgrid.ArcGridRaster org.geotools.gce.arcgrid.GRASSArcGridRaster
ArcGridRaster sub-instance that handles the "ArcGrid" format that GRASS outputs (a variation of the original format...)
Field Summary | |
static java.lang.String |
COLS
Column number tag in the header file |
static java.lang.String |
EAST
y corner coordinate tag in the header file |
static java.lang.String |
NO_DATA_MARKER
|
static java.lang.String |
NORTH
x corner coordinate tag in the header file |
static java.lang.String |
ROWS
Row number tag in the header file |
static java.lang.String |
SOUTH
y corner coordinate tag in the header file |
static java.lang.String |
WEST
y corner coordinate tag in the header file |
Fields inherited from class org.geotools.gce.arcgrid.ArcGridRaster |
cellSize, CELLSIZE, maxValue, minValue, nCols, NCOLS, noData, NODATA_VALUE, nRows, NROWS, xllCorner, XLLCORNER, yllCorner, YLLCORNER |
Constructor Summary | |
GRASSArcGridRaster(java.io.PrintWriter writer)
|
|
GRASSArcGridRaster(java.io.Reader reader,
boolean compress)
|
|
GRASSArcGridRaster(java.net.URL srcURL)
Creates a new instance of ArcGridRaster |
Method Summary | |
protected void |
parseHeader(java.io.StreamTokenizer st)
Parse the header of an ascii grid file. |
java.awt.image.WritableRaster |
readRaster()
Returns the WritableRaster of the raster |
void |
writeRaster(java.awt.image.Raster raster,
double xl,
double yl,
double cellsize,
boolean compress)
Write out the given raster. |
Methods inherited from class org.geotools.gce.arcgrid.ArcGridRaster |
getCellSize, getMaxValue, getMinValue, getNCols, getNoData, getNRows, getXlCorner, getYlCorner, openReader, openWriter, parseHeader, readHeaderDouble, spaces, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String COLS
public static final java.lang.String ROWS
public static final java.lang.String NORTH
public static final java.lang.String SOUTH
public static final java.lang.String EAST
public static final java.lang.String WEST
public static final java.lang.String NO_DATA_MARKER
Constructor Detail |
public GRASSArcGridRaster(java.net.URL srcURL) throws java.io.IOException
srcURL
- URL of a ArcGridRaster
java.io.IOException
- DOCUMENT ME!public GRASSArcGridRaster(java.io.Reader reader, boolean compress) throws java.io.IOException
public GRASSArcGridRaster(java.io.PrintWriter writer) throws java.io.IOException
Method Detail |
protected void parseHeader(java.io.StreamTokenizer st) throws java.io.IOException
ArcGridRaster
parseHeader
in class ArcGridRaster
st
- StringTokenizer to be used to parse this header.
java.io.IOException
public java.awt.image.WritableRaster readRaster() throws java.io.IOException
readRaster
in class ArcGridRaster
java.io.IOException
- DOCUMENT ME!public void writeRaster(java.awt.image.Raster raster, double xl, double yl, double cellsize, boolean compress) throws java.io.IOException
writeRaster
in class ArcGridRaster
raster
- DOCUMENT ME!xl
- DOCUMENT ME!yl
- DOCUMENT ME!cellsize
- DOCUMENT ME!compress
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |