USGS DEM LINKS
& SAMPLE C CODE

The file listed below is a modified version of the dem2dxf file found on at this site:

ftp://ftp.blm.gov/pub/gis/

d2x.zip The 3 programs in this archive all require you to enter the input & output file on the command line.

D2X1.EXE is used to tell you the minimum & maximum LONG/LAT (X/Y) in the file. It doesn't output any file.

D2X2.EXE syntax is D2X2 FILE.DEM FILE.DXF MINX MINY MAXX MAXY This creates a dxf file with x,y,z points for all the DEM points.

DEMX100.EXE has same syntax as D2X2 but will create 3d faces instead of points. This is probably the file you want to use. You will get a really big DXF file if you don't constrain the MIN/MAX coordinates.

The output data on the elevations is in meters. If you wish to convert it to feet, add the following formula to the C program & recompile. I'll make this a switch later.

MT2FT = 1200.0 / 3937.0;

Z0 = Z0 / MT2FT;

HOME | AutoCAD | PHOTOS | DLGLX | DEM | SDTS | BSS | | 3D | LINKS