|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.d.umn.fileformats.ElevationFile
edu.d.umn.fileformats.DemFile
public class DemFile
This class is a specialization of the ElevationFile class created
specifically to load DEM format data from the USGS archives.
ElevationFile| Field Summary | |
|---|---|
static int |
ARECORD_LENGTH
Length of the A record of a DEM file. |
static int |
MIN_ARECORD_TOKENS
Minimum number of A record tokens. |
static int |
QUADRANGLE_NAME_LENGTH
Name of the quadrangle the dem file describes. |
| Fields inherited from class edu.d.umn.fileformats.ElevationFile |
|---|
elevations, fileName, filePath, groundCoordinates, maxElevation, minElevation, nColumns, nRows, quadrangleName, resolution |
| Constructor Summary | |
|---|---|
DemFile(java.lang.String aFileName)
Create DemFile object from data contained in specified file |
|
| Method Summary | |
|---|---|
double |
parseDemDouble(java.lang.String in)
This method parses a double from a string. |
int |
parseDemInt(java.lang.String in)
This method parses an integer from a string. |
| Methods inherited from class edu.d.umn.fileformats.ElevationFile |
|---|
getResolution |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ARECORD_LENGTH
public static final int QUADRANGLE_NAME_LENGTH
public static final int MIN_ARECORD_TOKENS
| Constructor Detail |
|---|
public DemFile(java.lang.String aFileName)
throws java.lang.IllegalArgumentException
aFileName - name of the DEM file to load. File name should be a
fully qualified file name.
java.lang.IllegalArgumentException - Thrown if the file does not meet standards for a dem file.| Method Detail |
|---|
public double parseDemDouble(java.lang.String in)
throws java.lang.NumberFormatException
in - string to parse
java.lang.NumberFormatException - thrown when string is not a valid double
public int parseDemInt(java.lang.String in)
throws java.lang.NumberFormatException
in - string to parse
java.lang.NumberFormatException - thrown when string is not a valid double
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||