|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.gis.UsgsDemAdapter
public class UsgsDemAdapter
UsgsDemAdapter converts the data in a USGS DEM file to a VisAD object. The specification for * the format can be found at http://rockyweb.cr.usgs.gov/nmpstds/acrodocs/dem/2DEM0198.PDF. Refer to this document for further explanation of the data elements of a DEM.
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 Summary | |
|---|---|
UsgsDemAdapter()
Default constructor, everything remains null. |
|
UsgsDemAdapter(String filename)
Constructs a new UsgsDemAdapter object with data read from the given (native format, non-SDTS) USGS DEM file |
|
| Method Summary | |
|---|---|
FieldImpl |
getData()
Get the DEM as a VisAD data object |
Gridded2DSet |
getDomain()
Get the domain set for this DEM |
void |
load(String filename)
Reinitializes this UsgsDemAdapter object with data read from the given (non-SDTS) USGS DEM file. |
static void |
main(String[] args)
|
static String |
padRight(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. |
String |
toString()
Multi-line string representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UsgsDemAdapter()
public UsgsDemAdapter(String filename)
throws IOException,
VisADException
filename - the name of the DEM file
IOException
VisADException| Method Detail |
|---|
public void load(String filename)
throws IOException,
VisADException
filename - the name of the DEM file
IOException - - If an I/O error occurs (invalid file)
VisADExceptionpublic String toString()
toString in class Object
public static String padRight(Object obj,
int i)
obj - Object to be paddedi - padding length
public FieldImpl getData()
throws VisADException
VisADException
public Gridded2DSet getDomain()
throws VisADException
VisADException
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||