Using Terrain Extractor (Trex)

  Applies To 
  Product(s): WaterGEMS, WaterCAD, HAMMER, SewerGEMS,  SewerCAD, StormCAD, CivilStorm
  Version(s): 08.11.XX.XX, 10.XX.XX.XX
  Area:  Layout and Data Input
  Original Author: Dan Iannicelli, Bentley Technical Support Group

How to

Automatically assign ground elevation data to nodes using the TRex Terrain Extractor tool.

Background

The Terrain Extractor (TRex) tool can automatically assign elevations to any nodes based on the nearest elevations from a contour DXF, shapefile, LandXML file, or spot elevations. If you are working in WaterGEMS, SewerGEMS, or HAMMER in the ArcGIS environment, there is the additional ability to assign elevation data based on TIN, DEM or Raster (such as TIF / TIFF) files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. NOTE: Tank elevation or level range will not be included with TRex, only the ground elevation.

You can access TRex from the Tools menu. Most options are self explanatory, but the most important thing is that the contour must line up with the elements in the model. Meaning, the contour must spatially overlap the model, with both the model elements and the contours in the correct X:Y coordinates.

If you want to apply elevation data for a selection of nodes instead of the whole system, choose the Selection or Selection Set radials in the section "Nodes to Update". For Selection, it will apply data to elements you have already selected in the drawing. For Selection Set, you can choose a selection set of elements to apply the data.

Standalone

 

ESRI ArcMap integrated mode:

Note: When using TRex, it is necessary that the model and the DEM be in the same coordinate system. Usually the USGS DEMs are in the UTM (Universal Transverse Mercator) with North American Datum 1983 (NAD83) in meters, although some may use NAD27. Models are often constructed using a state plane coordinate system in feet. Either the model or DEM must be converted so that the two are in the same coordinate system for TRex to work. Similarly, the vertical datum for USGS is based on national Vertical Geodetic Datum of 1929. If the utility has used some other datum for vertical control, then these differences need to be reconciled.

Protecting Elements with Existing GPS Survey Elevations

In some cases you may have survey elevation readings with higher accuracy, which should be protected from Trex updates. Here are two approaches to consider:

1) Use ModelBuilder. Maintain a spreadsheet for your survey GPS elevations, linked to the element name and set up a ModelBuilder run for it. After doing a Trex update, click the "build model" button in ModelBuilder for the run you created, to update the Elevation field with the survey GPS elevations (that override the Trex imported ones). You can also create a User Data Extension to flag a node as having a survey-based Elevation, for reference. (see Help topic on User Data Extensions / UDX)

2) Maintain a selection set of elements that exclude the ones that have their elevations from GPS, and use that in the Trex Wizard. One option is to create a query-based selection set, based on a UDX flag field (for example a true/false "From GPS?" field, to only list elements that do NOT have higher-accuracy survey elevations.) Then, select that selection set in the Trex Wizard, so that Trex only updates elevations that do not have the more accurate survey elevations. As you get new survey/GPS elevations, you would update the elevation and toggle the "flag" UDX field, then re-run the query and re-open the selection set to refresh it, so that the Trex Wizard picks up on that change - see related article here.

If you're using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field "Update Ground Elevation from Terrain Model?" to "false" for nodes that have higher accuracy survey/GPS elevations. That way, the elevations for those nodes will keep the higher accuracy values and the terrain model contour will not override.


What if I Have an Image From Google Earth?

The Bentley Civil products can create a terrain model from Google Earth data. If you have access to InRoads or Power Civil for example, you can create the terrain model using that product, as detailed here:

Create an InRoads DTM from Google Earth

This will create a .dtm file, which the Terrain Extractor tool can read, if you choose the Bentley DTM File option as the source data.

Can I Infer Elevations from Surrounding Elements, without a Terrain File?

If you do not have access to terrain data but want to populate missing elevations from surrounding nodes that do have elevations, see the following article: 

Inferring ground elevation from surrounding elements

Terrain Model Tool

Starting with the SELECTseries 5 release of the Storm and Sewer products, a new Terrain Model feature has been added, which allows you to activate a terrain model file in the model at all times. Elevations of nodes will then update automatically per the active terrain model, when the nodes are added or moved. For more on this, see the Help topic or the following articles:

What's new in SewerGEMS V8i SELECTseries 5?

What's new in SewerCAD V8i SELECTseries 5?

What's new in StormCAD V8i SELECTseries 5?

What's new in CivilStorm V8i SELECTseries 5?


What Method of Interpolation is used by Trex and the Terrain Model Tool?

Please refer to this article:

Interpolation Method Used by Terrain Extractor (Trex)

How can I use data from ContextCapture?

See article:

Consuming ContextCapture production files within your hydraulic model

Anonymous
Recommended
Related