|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgtmig.org.geotools.gce.arcgrid.ArcGridRaster
public class ArcGridRaster
Martin Schmitz (2009-09-02):
This class is taken 1:1 from gt2-2.3.0-M0
because of the following reasons:
ArcGridReader
from "standard" GT makes problems with
raster colorization (no default style, so "everything green" without SLD;
no data value specified in meta data not displayed transparent).ArcGridFormat
.ArcGridReader.getMetaDataValue(..)
Field Summary | |
---|---|
protected double |
cellSize
Deprecated. |
static String |
CELLSIZE
Deprecated. cell size tag in the header file |
protected double |
maxValue
Deprecated. max value found in the file |
protected double |
minValue
Deprecated. min value found in the file |
protected int |
nCols
Deprecated. |
static String |
NCOLS
Deprecated. Column number tag in the header file |
protected double |
noData
Deprecated. |
static String |
NODATA_VALUE
Deprecated. no data tag in the header file |
protected int |
nRows
Deprecated. |
static String |
NROWS
Deprecated. Row number tag in the header file |
protected double |
xllCorner
Deprecated. |
static String |
XLLCORNER
Deprecated. x corner coordinate tag in the header file |
protected double |
yllCorner
Deprecated. |
static String |
YLLCORNER
Deprecated. y corner coordinate tag in the header file |
Constructor Summary | |
---|---|
ArcGridRaster(PrintWriter writer)
Deprecated. Creates a new instance of ArcGridRaster. |
|
ArcGridRaster(Reader reader,
boolean compress)
Deprecated. Creates a new instance of ArcGridRaster. |
|
ArcGridRaster(URL srcURL)
Deprecated. Creates a new instance of ArcGridRaster. |
Method Summary | |
---|---|
double |
getCellSize()
Deprecated. Returns the cell size. |
double |
getMaxValue()
Deprecated. Max value. |
double |
getMinValue()
Deprecated. Min value. |
int |
getNCols()
Deprecated. Returns the number of columns contained in the file. |
double |
getNoData()
Deprecated. Returns the no data (null) value. |
int |
getNRows()
Deprecated. Returns the number of rows contained in the file. |
double |
getXlCorner()
Deprecated. Returns the x cordinate of the lower left corner. |
double |
getYlCorner()
Deprecated. Returns the y cordinate of the lower left corner. |
protected Reader |
openReader()
Deprecated. Obtain the best reader for the situation |
protected PrintWriter |
openWriter(boolean compress)
Deprecated. Open the best writer for the situation. |
void |
parseHeader()
Deprecated. Parses the reader for the known properties. |
protected void |
parseHeader(StreamTokenizer st)
Deprecated. Parse the header of an ascii grid file. |
protected double |
readHeaderDouble(StreamTokenizer st)
Deprecated. |
WritableRaster |
readRaster()
Deprecated. Returns the WritableRaster of the raster. |
protected void |
spaces(PrintWriter p,
int n)
Deprecated. Print n spaces to the PrintWriter |
String |
toString()
Deprecated. |
void |
writeRaster(Raster raster,
double xl,
double yl,
double cellsize,
boolean compress)
Deprecated. Write out the given raster.. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String NCOLS
public static final String NROWS
public static final String XLLCORNER
public static final String YLLCORNER
public static final String CELLSIZE
public static final String NODATA_VALUE
protected double maxValue
protected double minValue
protected double xllCorner
protected double yllCorner
protected double cellSize
protected double noData
protected int nCols
protected int nRows
Constructor Detail |
---|
public ArcGridRaster(URL srcURL)
srcURL
- URL of a ArcGridRaster.
IOException
- DOCUMENT ME!public ArcGridRaster(Reader reader, boolean compress)
reader
- reader to be used for reading the Raster.compress
- DOCUMENT ME!
IOException
- DOCUMENT ME!public ArcGridRaster(PrintWriter writer)
writer
- writer to be used for writing the Raster.
IOException
- DOCUMENT ME!Method Detail |
---|
public double getMaxValue()
public final double getMinValue()
public final int getNRows()
public final int getNCols()
public final double getXlCorner()
public final double getYlCorner()
public final double getCellSize()
public final double getNoData()
public final void parseHeader() throws IOException
IOException
- for reading errorsprotected void parseHeader(StreamTokenizer st) throws IOException
st
- StringTokenizer to be used to parse this header.
IOException
protected double readHeaderDouble(StreamTokenizer st) throws IOException
IOException
protected Reader openReader() throws IOException
IOException
- DOCUMENT ME!protected PrintWriter openWriter(boolean compress) throws IOException
compress
- DOCUMENT ME!
IOException
- DOCUMENT ME!public WritableRaster readRaster() throws IOException
IOException
- DOCUMENT ME!protected void spaces(PrintWriter p, int n)
p
- DOCUMENT ME!n
- DOCUMENT ME!public void writeRaster(Raster raster, double xl, double yl, double cellsize, boolean compress) throws IOException
raster
- DOCUMENT ME!xl
- DOCUMENT ME!yl
- DOCUMENT ME!cellsize
- DOCUMENT ME!compress
- DOCUMENT ME!
IOException
- DOCUMENT ME!public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |