One of its distribution formats is SDTS which TransDEM cannot read directly. However, after conversion to .dxf, the data can be used with TransDEM.
The procedure is somewhat complex but should yield proper results, eventually.
How to obtain the data
- DLG in SDTS format is available from this USGS site: http://edc2.usgs.gov/geodata/index.php. Click on "1:24,000 Scale Digital Line Graphs (DLG) SDTS Format Only" to open this area.
Data is structured by state and by 7.5' quadrangle. - Click on "State" for the list of states, then on the state you want. e.g. Colorado. You will see the list of quads, ordered by quad name.
- To identify the names of the quads you need I recommend to use a map finder like this one: http://www.usgsquads.com/index.php/map- ... /mapfinder.
- Set to "1:24,000 Topographic Quad Index" and select the state, Colorado again. Zoom in or select city. Let's find "Golden, Co". Zoom in until you spot the Rio Grande main line up to Moffat Tunnel. Follow route 93 north then west on route 72. Here we are. We need 4 quads for this bit. Clicking on the "i" icons reveals: Eldorado Springs, Louisville, Ralston Buttes and Golden.
- Back to the Eros Data Server, the USGS site. Let's start with "Golden". The vector layer is next. We will concentrate on railroads, to be found under "transportation". The railroad files are those with with "RR" in the name. you often find more than one. With a bit of luck, the one with the highest number is UTM/NAD83, the easiest to deal with for later processing in TransDEM. In this case ("Golden" quad), the file is "1531411.RR.sdts.tar.gz". Download to a suitable folder.
- Repeat for the other quads.
How to convert the data
- Unzip/untar all downloaded files to their respective directories. Each directory will have a number of ddf files with cryptic names. ddf is a file format for SDTS.
- Next we we need a converter. I will be using sdts2dxf which is a console program. You can download it here: http://software.geocomm.com/translators/sdts/ (There are other places, too).
- The easiest way to proceed is to copy sdts2dxf.exe into each of the unpacked sdts directories, the ones with the ddf files.
- Open a console window for one the directories, let's start with Golden (1531411.RR.sdts).
- Start sdts2dxf.exe
- The first prompt will be "Enter base SDTS file name:" Reply with the first four characters of the ddf file names, "RR01" in this case.
- Next prompt is "Enter the 2 digits in position 7 & 8 of input filename". Answer it's "01" in this case.
- The third and last prompt will be "Enter base output file name (exclude any extension):" Enter a name. I suggest to use the name of the quad, i.e. "Golden" (w/o quotes).
- sdts2dxf will list some information and possible display a warning, but it should produce "Golden.dxf".
Code: Select all
Golden Title: GOLDEN, CO / RAILROADS Data structure: DLG-3 Map Date: 1997 Data set creation date: 20000906 Scale: 24000 CAN'T OPEN FILE rr01ne01.ddf, continuing...... - Repeat for the the other quads.
How to process the data in TransDEM
- Prepare TransDEM for using vector data by either loading a DEM or a georeferenced raster map of the area with the downloaded DLG quads. I recommend a map, one that shows the railroads, with a scale of 1:50000 or better.
- Open the first .dxf file, the one for Golden. Set the "Open Route" input data type to .dxf. Locate and open the file. Reply "Yes" to the popup message, where TransDEM offers to remove any boundaries.
[Note: (Fixed in TransDEM 2.1.2) TransDEM 2.1.1 may crash here as I found out today. Apparently this is an error almost 10 years old, from a library written before I started with TransDEM. Will be fixed shortly. If you encounter this problem, leave the boundaries in for the moment.]
The vectors should appear on top of the DEM or the raster map. - Verify the coordinates. Compare with the map. If the DLG data has a different geodetic datum, i.e UTM/NAD27, the vectors will not line up correctly with the map.
- Repeat for the other dxf files.
- Once all files are loaded, save the whole bunch by choosing "Save route as..." Use the default .str format an accept the default UTM settings for this file.