One of my users called me the other day asking if there was any way to convert our DTM surface into a DEM surface, as a client had called them asking if it was possible. The short answer to the question was yes, but let me review the fundamental differences in these formats before getting into the how-to of this task. Both formats exist for the same fundamental reason – to capture a representation of the earth’s surface. What differs is the way each stores that data.
A DEM or Digital Elevation Model stores this information using a predefined grid of squares. Thus imagine a piece of graph paper; at each point two graph lines intersect, an elevation will be assigned. This format is an effective way of representing surfaces, but due to it’s rigid nature isn’t necessarily the best choice for civil engineering design. And it is with that we have our second format – DTM or Digital Terrain Model. Unlike a DEM, a DTM captures a surface through the use of a triangular irregular network.
In essence, rather than using squares to capture a surface, a DTM uses triangles. At the corner of each respective triangle, an X, Y, & Z elevation is captured and stored. Since the triangular network is irregular, the TIN is generally better at capturing things like flow lines.
Overcoming Format Limitations
Although Civil 3D’s native modeling format is DTM, it does have the ability to export a surface to a DEM file. In addition to the architectural differences between DEM and DTM surfaces, the DEM format only accepts metric coordinate systems. International users don’t necessarily have to worry about this detail, but those using imperial coordinate systems will need to convert their surface to a metric coordinate system.
As we’ll see later the “Export to DEM” command within Civil 3D lists both the source coordinate system, and the coordinate system to the to-be-exported DEM. Generally speaking whenever Civil 3D lists both an input and output coordinate system, you can assume Civil 3D will do the heavy lifting of converting from one system to another. Unfortunately the “Export to DEM” command is an exception to that rule. As stated in the Civil 3D help file:
With that said we’ll have to perform the coordinate conversion manually. For purposes of this post I am going to use the LandXML format as a carrier to convert from one coordinate system to another.
- Right-Click on the surface name and select “Export LandXML”
- Since all we’re interested in is our surface, accept the defaults and press [Ok] to save your XML file.
- Create a new drawing (File > New), and select a Metric drawing template (ie. _AutoCAD Civil 3D (Metric) NCS Extended.dwt)
- Set the datum of your new DWG file
- From the Civil 3D Toolspace select the “Settings” tab.
- Right-Click on the DWG name and select “Edit Drawing Settings”
- Select an appropriate metric coordinate system