public class UsgsDemAdapter
extends java.lang.Object
To simplify things, class UsgsDem changes the format of a USGS 7.5 minute DEM to a simpler "row by column" raster form rather than the "row by column by subcolumn" format in the specification.
| Constructor and Description |
|---|
UsgsDemAdapter()
Default constructor, everything remains null.
|
UsgsDemAdapter(java.lang.String filename)
Constructs a new UsgsDemAdapter object with data read from the given
(native format, non-SDTS) USGS DEM file
|
| Modifier and Type | Method and Description |
|---|---|
FieldImpl |
getData()
Get the DEM as a VisAD data object
|
Gridded2DSet |
getDomain()
Get the domain set for this DEM
|
void |
load(java.lang.String filename)
Reinitializes this UsgsDemAdapter object with data read from the given
(non-SDTS) USGS DEM file.
|
static void |
main(java.lang.String[] args) |
static java.lang.String |
padRight(java.lang.Object obj,
int i)
This method takes any Object and using its String representation
provided by its toString() method, pads it with blank characters
on the right, to a specified length.
|
java.lang.String |
toString()
Multi-line string representation
|
public UsgsDemAdapter()
public UsgsDemAdapter(java.lang.String filename)
throws java.io.IOException,
VisADException
filename - the name of the DEM filejava.io.IOExceptionVisADExceptionpublic void load(java.lang.String filename)
throws java.io.IOException,
VisADException
filename - the name of the DEM filejava.io.IOException - - If an I/O error occurs (invalid file)VisADExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String padRight(java.lang.Object obj,
int i)
obj - Object to be paddedi - padding lengthpublic FieldImpl getData() throws VisADException
VisADExceptionpublic Gridded2DSet getDomain() throws VisADException
VisADExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception