public class DDFFile
- extends DDFFileAbstract
Created on July 1, 2005, 11:28 AM
ElevationFile to handle data from USGS SDTS transfers. These data files have a 4 number
identifier followed by a word, and end in a ddf extension. Not all of the files from a transfer
are necessary to build the model. The only ones this class currently uses is cel0.ddf, ddom.ddf,
iden.ddf, and ldef.ddf.
Many thanks to Bill Allen and his very helpful website www.3dartist.com/WP/sdts/sdtsnotes.htm
for decoding the ddf files.
Constructs a new DDFFile.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DDFFile(java.lang.String aFileName)
- Constructs a new DDFFile.
aFileName - Should be the full path to the file.
protected void findElevations()
- Parses the elevation data out of the cel0 file. Currently not as robust as I would like.
Two important assumptions are made.
1. The data records all come in the same format.
2. The elevations are recorded in two byte signed integers.
CAUTION! If an integer should fall outside of the minimum and maximum elevations, it is discarded.
protected void findRowColMax()