edu.d.umn.fileformats
Class ElevationFile

java.lang.Object
  extended by edu.d.umn.fileformats.ElevationFile
Direct Known Subclasses:
DDFFileAbstract, DemFile

public abstract class ElevationFile
extends java.lang.Object

ElevationFile is an abstract base class used to define the interface between files holding terrain data and the JAVA3D classes that convert the terrain data into geometric primitives.


Field Summary
 int[][] elevations
          two dimensional array of elevation data in meters, array represents equally spaced data points across the groundCoordinates.
 java.lang.String fileName
          data file name
 java.lang.String filePath
          Path to the file, not including the file name.
 GroundCoordinates groundCoordinates
          holds ground coordinates of the 4 corners in arc seconds
 int maxElevation
          maximum elevation in meters
 int minElevation
          minimum elevation in meters
 int nColumns
          number of data columns
 int nRows
          number of data rows
 java.lang.String quadrangleName
          geographic name or title of the data
protected  float resolution
          The overall resolution of the file.
 
Constructor Summary
ElevationFile()
          Does nothing.
 
Method Summary
 float getResolution()
          Accessor for the resolution field of the ElevationFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filePath

public java.lang.String filePath
Path to the file, not including the file name.


fileName

public java.lang.String fileName
data file name


quadrangleName

public java.lang.String quadrangleName
geographic name or title of the data


minElevation

public int minElevation
minimum elevation in meters


maxElevation

public int maxElevation
maximum elevation in meters


elevations

public int[][] elevations
two dimensional array of elevation data in meters, array represents equally spaced data points across the groundCoordinates. The first dimension is the row, the second the column


nRows

public int nRows
number of data rows


nColumns

public int nColumns
number of data columns


groundCoordinates

public GroundCoordinates groundCoordinates
holds ground coordinates of the 4 corners in arc seconds


resolution

protected float resolution
The overall resolution of the file. Typically will be 24k for a USGS SDTS DEM.

Constructor Detail

ElevationFile

public ElevationFile()
Does nothing.

Method Detail

getResolution

public float getResolution()
Accessor for the resolution field of the ElevationFile.

Returns:
The resolution.