edu.d.umn.fileformats
Class DDFFile
java.lang.Object
edu.d.umn.fileformats.ElevationFile
edu.d.umn.fileformats.DDFFileAbstract
edu.d.umn.fileformats.DDFFile
public class DDFFile
- extends DDFFileAbstract
DDFFile.java
Created on July 1, 2005, 11:28 AM
Extends 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.
Constructor Summary |
protected |
DDFFile()
|
|
DDFFile(java.lang.String aFileName)
Constructs a new DDFFile. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDFFile
protected DDFFile()
DDFFile
public DDFFile(java.lang.String aFileName)
- Constructs a new DDFFile.
- Parameters:
aFileName
- Should be the full path to the file.
findElevations
protected void findElevations()
throws java.io.IOException
- 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.
- Throws:
java.io.IOException
findRowColMax
protected void findRowColMax()
throws java.net.MalformedURLException,
java.io.IOException
- Throws:
java.net.MalformedURLException
java.io.IOException