<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex</link><pubDate>Fri, 10 Jun 2022 17:21:57 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Current Revision posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 6/10/2022 5:21:57 PM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;CONNECT Edition&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 &lt;a href="https://youtu.be/nJsaAbCqjzo"&gt;Raster &lt;/a&gt;(such as TIF / TIFF)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;&amp;quot;Select Elevation Field&amp;quot;&lt;/strong&gt; is where you choose the field in your data source that contains the elevation values (at the specified &amp;quot;Z Units&amp;quot;). T&lt;span&gt;he &amp;quot;z coordinate&amp;quot; option will pick up on the built-in elevation associated with the data source (for example Shapefiles, where the spatial data is built-in). Other fields may show up in this dropdown if you have metadata (attributes/fields) in your data source that contains numeric values. For example you may have a field in a Shapefile to store an elevation, and this field may appear. If you unsure of what to select, you may need to first examine the data source in an external application (for example ArcGIS or QGIS for a Shapefile), consult with the person who provided the file to you, or use the &amp;quot;preview&amp;quot; option in ModelBuilder (for example start a new ModelBuilder run, select the same data source and look at the preview section to see the values in the fields).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;Protecting Elements with Existing GPS Survey Elevations&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1) Use &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/2821/using-modelbuilder-to-import-external-data"&gt;ModelBuilder&lt;/a&gt;. 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 &amp;quot;build model&amp;quot; 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)&lt;/p&gt;
&lt;p&gt;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 &amp;quot;From GPS?&amp;quot; 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 &amp;quot;flag&amp;quot; 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 &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/23478/query-based-selection-sets-not-updating-in-various-tools-such-as-color-coding-and-annotations"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field &amp;quot;Update Ground Elevation from Terrain Model?&amp;quot; to &amp;quot;false&amp;quot; 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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;Can I Infer Elevations from Surrounding Elements, without a Terrain File?&lt;/h1&gt;
&lt;p&gt;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:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37671/inferring-ground-elevation-from-surrounding-elements"&gt;Inferring ground elevation from surrounding elements&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;How can I use LiDAR data?&lt;/h1&gt;
&lt;p&gt;If your LiDAR data is not already in one of the supported formats (see above - note the additional formats supported in the ArcMap integrated mode), it may need to be processed externally first. For example if it is raw LiDAR data, it may need to be processed into a TIN/DEM, which Trex can then use to assign node elevations. If it is available in raster/image format (for example see &lt;a href="https://njogis-newjersey.opendata.arcgis.com/datasets/c09ee55562e24c3997d0d0db91c85848"&gt;here&lt;/a&gt;&amp;nbsp;or &lt;a href="https://njgin.nj.gov/njgin/edata/elevation/index.html#!/"&gt;here&lt;/a&gt;), you should be able to use the &amp;quot;ArcGIS Raster&amp;quot; data source type when integrating with ArcMap (available with WaterGEMS, SewerGEMS and HAMMER).&lt;/p&gt;
&lt;p&gt;If unsure, &lt;a href="/products/hydraulics___hydrology/f/haestad-hydraulics-and-hydrology-forum"&gt;contact Technical Support&lt;/a&gt;&amp;nbsp;with an example of the data you have, or the file type(s) or any other information about what you have.&lt;/p&gt;
&lt;h1&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;Troubleshooting&lt;/strong&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;Wrong elevations with Shapefile source&lt;/strong&gt;: If you see wrong elevations extracted in the range of 1000 m, e.g. out of a shapefile, then please check if&amp;nbsp;decimal separator symbol set to comma in your windows regional settings, if yes please change it to decimal points and then re-run TRex, it should import elevations correctly then.&amp;nbsp;We have filed a defect for this as of version 10.03.xx.xx, reference number is #1088269, which shall be resolved in future releases of the product.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Nodes get assigned an elevation of zero&lt;/strong&gt;: first, confirm that the data source aligns with the model. For example if it is a DXF or shapefile, try adding it as a background to see if it overlaps with the model elements. Next check the Elevation field that you selected in the Trex wizard to ensure it contains elevation data. Open the source file in its native application to check if the contours/points near your model node elements do indeed have elevation values for the selected elevation field. For example if you choose a DXF contour file that contains contour polylines in addition to polylines representing the model network, then Trex may try to assign elevations from those polylines since they are closest (if those lines were the source of the model network, imported with ModelBuilder). If this is the case, remove that layer in the DXF first or delete the polylines from the source file before importing with Trex.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Memory-related errors&lt;/strong&gt;: consider breaking the contour file into smaller chunks. See also: &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/10065/memory-error-when-using-terrain-extractor/"&gt;Memory error when using Terrain Extractor&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Other troubleshooting&lt;/strong&gt;: see links below or use the search bar above to find other articles in our Wiki&lt;/p&gt;
&lt;h1&gt;See Also&lt;/h1&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/47847/trex-error-the-data-source-file-must-contain-at-least-three-unclipped-points-in-order-to-create-an-elevation-map"&gt;Trex error: &amp;quot;The data source file must contain at least three unclipped points in order to create an elevation map&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36577/error-using-trex---circular-list-error-clockwise-codebase-error-no-matching-data"&gt;Error when using TRex: No Matching Data: All elements in the model fall outside the scope of the DEM.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36577/error-using-trex---circular-list-error-clockwise"&gt;Error using TRex - Circular list error clockwise&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37126/trex-error-attempted-to-read-or-write-protected-memory-object-reference-not-set-to-instance-of-an-object"&gt;Error using TREX with LandXML file: &amp;quot;Object reference not set to an instance of an object.&amp;quot;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, survey, LIDAR, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, Reality model, CivilStorm, Google Earth, WaterCAD, GPS, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/26</link><pubDate>Tue, 16 Mar 2021 14:20:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Larry Abla</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 26 posted to OpenFlows | Water Infrastructure Wiki by Larry Abla on 3/16/2021 2:20:58 PM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;CONNECT Edition&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 &lt;a href="https://youtu.be/nJsaAbCqjzo"&gt;Raster &lt;/a&gt;(such as TIF / TIFF)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;Protecting Elements with Existing GPS Survey Elevations&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1) Use &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/2821/using-modelbuilder-to-import-external-data"&gt;ModelBuilder&lt;/a&gt;. 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 &amp;quot;build model&amp;quot; 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)&lt;/p&gt;
&lt;p&gt;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 &amp;quot;From GPS?&amp;quot; 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 &amp;quot;flag&amp;quot; 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 &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/23478/query-based-selection-sets-not-updating-in-various-tools-such-as-color-coding-and-annotations"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field &amp;quot;Update Ground Elevation from Terrain Model?&amp;quot; to &amp;quot;false&amp;quot; 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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;Can I Infer Elevations from Surrounding Elements, without a Terrain File?&lt;/h1&gt;
&lt;p&gt;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:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37671/inferring-ground-elevation-from-surrounding-elements"&gt;Inferring ground elevation from surrounding elements&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;How can I use LiDAR data?&lt;/h1&gt;
&lt;p&gt;If your LiDAR data is not already in one of the supported formats (see above - note the additional formats supported in the ArcMap integrated mode), it may need to be processed externally first. For example if it is raw LiDAR data, it may need to be processed into a TIN/DEM, which Trex can then use to assign node elevations. If it is available in raster/image format (for example see &lt;a href="https://njogis-newjersey.opendata.arcgis.com/datasets/c09ee55562e24c3997d0d0db91c85848"&gt;here&lt;/a&gt;&amp;nbsp;or &lt;a href="https://njgin.nj.gov/njgin/edata/elevation/index.html#!/"&gt;here&lt;/a&gt;), you should be able to use the &amp;quot;ArcGIS Raster&amp;quot; data source type when integrating with ArcMap (available with WaterGEMS, SewerGEMS and HAMMER).&lt;/p&gt;
&lt;p&gt;If unsure, &lt;a href="/products/hydraulics___hydrology/f/haestad-hydraulics-and-hydrology-forum"&gt;contact Technical Support&lt;/a&gt;&amp;nbsp;with an example of the data you have, or the file type(s) or any other information about what you have.&lt;/p&gt;
&lt;h1&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;Troubleshooting&lt;/strong&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;Wrong elevations with Shapefile source&lt;/strong&gt;: If you see wrong elevations extracted in the range of 1000 m, e.g. out of a shapefile, then please check if&amp;nbsp;decimal separator symbol set to comma in your windows regional settings, if yes please change it to decimal points and then re-run TRex, it should import elevations correctly then.&amp;nbsp;We have filed a defect for this as of version 10.03.xx.xx, reference number is #1088269, which shall be resolved in future releases of the product.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Nodes get assigned an elevation of zero&lt;/strong&gt;: first, confirm that the data source aligns with the model. For example if it is a DXF or shapefile, try adding it as a background to see if it overlaps with the model elements. Next check the Elevation field that you selected in the Trex wizard to ensure it contains elevation data. Open the source file in its native application to check if the contours/points near your model node elements do indeed have elevation values for the selected elevation field. For example if you choose a DXF contour file that contains contour polylines in addition to polylines representing the model network, then Trex may try to assign elevations from those polylines since they are closest (if those lines were the source of the model network, imported with ModelBuilder). If this is the case, remove that layer in the DXF first or delete the polylines from the source file before importing with Trex.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Memory-related errors&lt;/strong&gt;: consider breaking the contour file into smaller chunks. See also: &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/10065/memory-error-when-using-terrain-extractor/"&gt;Memory error when using Terrain Extractor&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Other troubleshooting&lt;/strong&gt;: see links below or use the search bar above to find other articles in our Wiki&lt;/p&gt;
&lt;h1&gt;See Also&lt;/h1&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/47847/trex-error-the-data-source-file-must-contain-at-least-three-unclipped-points-in-order-to-create-an-elevation-map"&gt;Trex error: &amp;quot;The data source file must contain at least three unclipped points in order to create an elevation map&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36577/error-using-trex---circular-list-error-clockwise-codebase-error-no-matching-data"&gt;Error when using TRex: No Matching Data: All elements in the model fall outside the scope of the DEM.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36577/error-using-trex---circular-list-error-clockwise"&gt;Error using TRex - Circular list error clockwise&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37126/trex-error-attempted-to-read-or-write-protected-memory-object-reference-not-set-to-instance-of-an-object"&gt;Error using TREX with LandXML file: &amp;quot;Object reference not set to an instance of an object.&amp;quot;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, survey, LIDAR, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, Reality model, CivilStorm, Google Earth, WaterCAD, GPS, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/25</link><pubDate>Tue, 24 Nov 2020 17:19:43 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 25 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 11/24/2020 5:19:43 PM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;V8i, CONNECT Edition&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 &lt;a href="https://youtu.be/nJsaAbCqjzo"&gt;Raster &lt;/a&gt;(such as TIF / TIFF)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;Protecting Elements with Existing GPS Survey Elevations&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1) Use &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/2821/using-modelbuilder-to-import-external-data"&gt;ModelBuilder&lt;/a&gt;. 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 &amp;quot;build model&amp;quot; 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)&lt;/p&gt;
&lt;p&gt;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 &amp;quot;From GPS?&amp;quot; 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 &amp;quot;flag&amp;quot; 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 &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/23478/query-based-selection-sets-not-updating-in-various-tools-such-as-color-coding-and-annotations"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field &amp;quot;Update Ground Elevation from Terrain Model?&amp;quot; to &amp;quot;false&amp;quot; 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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;Can I Infer Elevations from Surrounding Elements, without a Terrain File?&lt;/h1&gt;
&lt;p&gt;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:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37671/inferring-ground-elevation-from-surrounding-elements"&gt;Inferring ground elevation from surrounding elements&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;How can I use LiDAR data?&lt;/h1&gt;
&lt;p&gt;If your LiDAR data is not already in one of the supported formats (see above - note the additional formats supported in the ArcMap integrated mode), it may need to be processed externally first. For example if it is raw LiDAR data, it may need to be processed into a TIN/DEM, which Trex can then use to assign node elevations. If it is available in raster/image format (for example see &lt;a href="https://njogis-newjersey.opendata.arcgis.com/datasets/c09ee55562e24c3997d0d0db91c85848"&gt;here&lt;/a&gt;&amp;nbsp;or &lt;a href="https://njgin.nj.gov/njgin/edata/elevation/index.html#!/"&gt;here&lt;/a&gt;), you should be able to use the &amp;quot;ArcGIS Raster&amp;quot; data source type when integrating with ArcMap (available with WaterGEMS, SewerGEMS and HAMMER).&lt;/p&gt;
&lt;p&gt;If unsure, &lt;a href="/products/hydraulics___hydrology/f/haestad-hydraulics-and-hydrology-forum"&gt;contact Technical Support&lt;/a&gt;&amp;nbsp;with an example of the data you have, or the file type(s) or any other information about what you have.&lt;/p&gt;
&lt;h1&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;Troubleshooting&lt;/strong&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;Wrong elevations with Shapefile source&lt;/strong&gt;: If you see wrong elevations extracted in the range of 1000 m, e.g. out of a shapefile, then please check if&amp;nbsp;decimal separator symbol set to comma in your windows regional settings, if yes please change it to decimal points and then re-run TRex, it should import elevations correctly then.&amp;nbsp;We have filed a defect for this as of version 10.03.xx.xx, reference number is #1088269, which shall be resolved in future releases of the product.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Nodes get assigned an elevation of zero&lt;/strong&gt;: first, confirm that the data source aligns with the model. For example if it is a DXF or shapefile, try adding it as a background to see if it overlaps with the model elements. Next check the Elevation field that you selected in the Trex wizard to ensure it contains elevation data. Open the source file in its native application to check if the contours/points near your model node elements do indeed have elevation values for the selected elevation field. For example if you choose a DXF contour file that contains contour polylines in addition to polylines representing the model network, then Trex may try to assign elevations from those polylines since they are closest (if those lines were the source of the model network, imported with ModelBuilder). If this is the case, remove that layer in the DXF first or delete the polylines from the source file before importing with Trex.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Memory-related errors&lt;/strong&gt;: consider breaking the contour file into smaller chunks. See also: &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/10065/memory-error-when-using-terrain-extractor/"&gt;Memory error when using Terrain Extractor&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Other troubleshooting&lt;/strong&gt;: see links below or use the search bar above to find other articles in our Wiki&lt;/p&gt;
&lt;h1&gt;See Also&lt;/h1&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/47847/trex-error-the-data-source-file-must-contain-at-least-three-unclipped-points-in-order-to-create-an-elevation-map"&gt;Trex error: &amp;quot;The data source file must contain at least three unclipped points in order to create an elevation map&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/10115/error-when-using-trex-no-matching-data-all-elements-in-the-model-fall-outside-the-scope-of-the-dem"&gt;Error when using TRex: No Matching Data: All elements in the model fall outside the scope of the DEM.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36577/error-using-trex---circular-list-error-clockwise"&gt;Error using TRex - Circular list error clockwise&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37672/error-using-trex-with-landxml-file-object-reference-not-set-to-an-instance-of-an-object"&gt;Error using TREX with LandXML file: &amp;quot;Object reference not set to an instance of an object.&amp;quot;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, survey, LIDAR, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, Reality model, CivilStorm, Google Earth, WaterCAD, GPS, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/24</link><pubDate>Mon, 25 May 2020 01:27:01 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 24 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 5/25/2020 1:27:01 AM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;V8i, CONNECT Edition&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 &lt;a href="https://youtu.be/nJsaAbCqjzo"&gt;Raster &lt;/a&gt;(such as TIF / TIFF)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;Protecting Elements with Existing GPS Survey Elevations&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1) Use &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/2821/using-modelbuilder-to-import-external-data"&gt;ModelBuilder&lt;/a&gt;. 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 &amp;quot;build model&amp;quot; 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)&lt;/p&gt;
&lt;p&gt;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 &amp;quot;From GPS?&amp;quot; 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 &amp;quot;flag&amp;quot; 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 &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/23478/query-based-selection-sets-not-updating-in-various-tools-such-as-color-coding-and-annotations"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field &amp;quot;Update Ground Elevation from Terrain Model?&amp;quot; to &amp;quot;false&amp;quot; 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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;Can I Infer Elevations from Surrounding Elements, without a Terrain File?&lt;/h1&gt;
&lt;p&gt;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:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37671/inferring-ground-elevation-from-surrounding-elements"&gt;Inferring ground elevation from surrounding elements&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;How can I use LiDAR data?&lt;/h1&gt;
&lt;p&gt;If your LiDAR data is not already in one of the supported formats (see above - note the additional formats supported in the ArcMap integrated mode), it may need to be processed externally first. For example if it is raw LiDAR data, it may need to be processed into a TIN/DEM, which Trex can then use to assign node elevations. If it is available in raster/image format (for example see &lt;a href="https://njogis-newjersey.opendata.arcgis.com/datasets/c09ee55562e24c3997d0d0db91c85848"&gt;here&lt;/a&gt;&amp;nbsp;or &lt;a href="https://njgin.nj.gov/njgin/edata/elevation/index.html#!/"&gt;here&lt;/a&gt;), you should be able to use the &amp;quot;ArcGIS Raster&amp;quot; data source type when integrating with ArcMap (available with WaterGEMS, SewerGEMS and HAMMER).&lt;/p&gt;
&lt;p&gt;If unsure, &lt;a href="/products/hydraulics___hydrology/f/haestad-hydraulics-and-hydrology-forum"&gt;contact Technical Support&lt;/a&gt;&amp;nbsp;with an example of the data you have, or the file type(s) or any other information about what you have.&lt;/p&gt;
&lt;h1&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;Troubleshooting&lt;/strong&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;Wrong elevations with Shapefile source&lt;/strong&gt;: If you see wrong elevations extracted in the range of 1000 m, e.g. out of a shapefile, then please check if&amp;nbsp;decimal separator symbol set to comma in your windows regional settings, if yes please change it to decimal points and then re-run TRex, it should import elevations correctly then.&amp;nbsp;We have filed a defect for this as of version 10.03.xx.xx, reference number is #1088269, which shall be resolved in future releases of the product.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Nodes get assigned an elevation of zero&lt;/strong&gt;: first, confirm that the data source aligns with the model. For example if it is a DXF or shapefile, try adding it as a background to see if it overlaps with the model elements. Next check the Elevation field that you selected in the Trex wizard to ensure it contains elevation data. Open the source file in its native application to check if the contours/points near your model node elements do indeed have elevation values for the selected elevation field. For example if you choose a DXF contour file that contains contour polylines in addition to polylines representing the model network, then Trex may try to assign elevations from those polylines since they are closest (if those lines were the source of the model network, imported with ModelBuilder). If this is the case, remove that layer in the DXF first or delete the polylines from the source file before importing with Trex.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Other troubleshooting&lt;/strong&gt;: see links below or use the search bar above to find other articles in our Wiki&lt;/p&gt;
&lt;h1&gt;See Also&lt;/h1&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/47847/trex-error-the-data-source-file-must-contain-at-least-three-unclipped-points-in-order-to-create-an-elevation-map"&gt;Trex error: &amp;quot;The data source file must contain at least three unclipped points in order to create an elevation map&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/10115/error-when-using-trex-no-matching-data-all-elements-in-the-model-fall-outside-the-scope-of-the-dem"&gt;Error when using TRex: No Matching Data: All elements in the model fall outside the scope of the DEM.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36577/error-using-trex---circular-list-error-clockwise"&gt;Error using TRex - Circular list error clockwise&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37672/error-using-trex-with-landxml-file-object-reference-not-set-to-an-instance-of-an-object"&gt;Error using TREX with LandXML file: &amp;quot;Object reference not set to an instance of an object.&amp;quot;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, survey, LIDAR, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, Reality model, CivilStorm, Google Earth, WaterCAD, GPS, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/23</link><pubDate>Fri, 22 May 2020 13:44:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 23 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 5/22/2020 1:44:26 PM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;V8i, CONNECT Edition&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 &lt;a href="https://youtu.be/nJsaAbCqjzo"&gt;Raster &lt;/a&gt;(such as TIF / TIFF)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;Protecting Elements with Existing GPS Survey Elevations&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1) Use &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/2821/using-modelbuilder-to-import-external-data"&gt;ModelBuilder&lt;/a&gt;. 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 &amp;quot;build model&amp;quot; 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)&lt;/p&gt;
&lt;p&gt;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 &amp;quot;From GPS?&amp;quot; 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 &amp;quot;flag&amp;quot; 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 &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/23478/query-based-selection-sets-not-updating-in-various-tools-such-as-color-coding-and-annotations"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field &amp;quot;Update Ground Elevation from Terrain Model?&amp;quot; to &amp;quot;false&amp;quot; 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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;Can I Infer Elevations from Surrounding Elements, without a Terrain File?&lt;/h1&gt;
&lt;p&gt;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:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37671/inferring-ground-elevation-from-surrounding-elements"&gt;Inferring ground elevation from surrounding elements&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;How can I use LiDAR data?&lt;/h1&gt;
&lt;p&gt;If your LiDAR data is not already in one of the supported formats (see above - note the additional formats supported in the ArcMap integrated mode), it may need to be processed externally first. For example if it is raw LiDAR data, it may need to be processed into a TIN/DEM, which Trex can then use to assign node elevations. If it is available in raster/image format (for example see &lt;a href="https://njogis-newjersey.opendata.arcgis.com/datasets/c09ee55562e24c3997d0d0db91c85848"&gt;here&lt;/a&gt;&amp;nbsp;or &lt;a href="https://njgin.nj.gov/njgin/edata/elevation/index.html#!/"&gt;here&lt;/a&gt;), you should be able to use the &amp;quot;ArcGIS Raster&amp;quot; data source type when integrating with ArcMap (available with WaterGEMS, SewerGEMS and HAMMER).&lt;/p&gt;
&lt;p&gt;If unsure, &lt;a href="/products/hydraulics___hydrology/f/haestad-hydraulics-and-hydrology-forum"&gt;contact Technical Support&lt;/a&gt;&amp;nbsp;with an example of the data you have, or the file type(s) or any other information about what you have.&lt;/p&gt;
&lt;h1&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;Troubleshooting&lt;/strong&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;Wrong elevations with Shapefile source&lt;/strong&gt;: If you see wrong elevations extracted in the range of 1000 m, e.g. out of a shapefile, then please check if&amp;nbsp;decimal separator symbol set to comma in your windows regional settings, if yes please change it to decimal points and then re-run TRex, it should import elevations correctly then.&amp;nbsp;We have filed a defect for this as of version 10.03.xx.xx, reference number is #1088269, which shall be resolved in future releases of the product.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Nodes get assigned an elevation of zero&lt;/strong&gt;: first, confirm that the data source aligns with the model. For example if it is a DXF or shapefile, try adding it as a background to see if it overlaps with the model elements. Next check the Elevation field that you selected in the Trex wizard to ensure it contains elevation data. Open the source file in its native application to check if the contours/points near your model node elements do indeed have elevation values for the selected elevation field. For example if you choose a DXF contour file that contains contour polylines in addition to polylines representing the model network, then Trex may try to assign elevations from those polylines since they are closest (if those lines were the source of the model network, imported with ModelBuilder). If this is the case, remove that layer in the DXF first or delete the polylines from the source file before importing with Trex.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Other troubleshooting&lt;/strong&gt;: see links below or use the search bar above to find other articles in our Wiki&lt;/p&gt;
&lt;h1&gt;See Also&lt;/h1&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/47847/trex-error-the-data-source-file-must-contain-at-least-three-unclipped-points-in-order-to-create-an-elevation-map"&gt;Trex error: &amp;quot;The data source file must contain at least three unclipped points in order to create an elevation map&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36577/error-using-trex---circular-list-error-clockwise"&gt;Error using TRex - Circular list error clockwise&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37672/error-using-trex-with-landxml-file-object-reference-not-set-to-an-instance-of-an-object"&gt;Error using TREX with LandXML file: &amp;quot;Object reference not set to an instance of an object.&amp;quot;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, survey, LIDAR, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, Reality model, CivilStorm, Google Earth, WaterCAD, GPS, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/22</link><pubDate>Thu, 16 Apr 2020 10:09:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Sushma Choure</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 22 posted to OpenFlows | Water Infrastructure Wiki by Sushma Choure on 4/16/2020 10:09:55 AM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;V8i, CONNECT Edition&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 &lt;a href="https://youtu.be/nJsaAbCqjzo"&gt;Raster &lt;/a&gt;(such as TIF / TIFF)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;Protecting Elements with Existing GPS Survey Elevations&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1) Use &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/2821/using-modelbuilder-to-import-external-data"&gt;ModelBuilder&lt;/a&gt;. 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 &amp;quot;build model&amp;quot; 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)&lt;/p&gt;
&lt;p&gt;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 &amp;quot;From GPS?&amp;quot; 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 &amp;quot;flag&amp;quot; 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 &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/23478/query-based-selection-sets-not-updating-in-various-tools-such-as-color-coding-and-annotations"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field &amp;quot;Update Ground Elevation from Terrain Model?&amp;quot; to &amp;quot;false&amp;quot; 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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;Can I Infer Elevations from Surrounding Elements, without a Terrain File?&lt;/h1&gt;
&lt;p&gt;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:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37671/inferring-ground-elevation-from-surrounding-elements"&gt;Inferring ground elevation from surrounding elements&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;How can I use LiDAR data?&lt;/h1&gt;
&lt;p&gt;If your LiDAR data is not already in one of the supported formats (see above - note the additional formats supported in the ArcMap integrated mode), it may need to be processed externally first. For example if it is raw LiDAR data, it may need to be processed into a TIN/DEM, which Trex can then use to assign node elevations. If it is available in raster/image format (for example see &lt;a href="https://njogis-newjersey.opendata.arcgis.com/datasets/c09ee55562e24c3997d0d0db91c85848"&gt;here&lt;/a&gt;&amp;nbsp;or &lt;a href="https://njgin.nj.gov/njgin/edata/elevation/index.html#!/"&gt;here&lt;/a&gt;), you should be able to use the &amp;quot;ArcGIS Raster&amp;quot; data source type when integrating with ArcMap (available with WaterGEMS, SewerGEMS and HAMMER).&lt;/p&gt;
&lt;p&gt;If unsure, &lt;a href="/products/hydraulics___hydrology/f/haestad-hydraulics-and-hydrology-forum"&gt;contact Technical Support&lt;/a&gt;&amp;nbsp;with an example of the data you have, or the file type(s) or any other information about what you have.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;NOTE:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you see wrong elevations extracted in the range of 1000 m, e.g. out of a shapefile, then please check if&amp;nbsp;decimal separator symbol set to comma in your windows regional settings, if yes please change it to decimal points and then re-run TRex, it should import elevations correctly then.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have filed a defect for this as of version 10.03.xx.xx, reference number is #1088269, which shall be resolved in future releases of the product.&amp;nbsp;&lt;/p&gt;
&lt;h1&gt;See Also&lt;/h1&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/47847/trex-error-the-data-source-file-must-contain-at-least-three-unclipped-points-in-order-to-create-an-elevation-map"&gt;Trex error: &amp;quot;The data source file must contain at least three unclipped points in order to create an elevation map&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36577/error-using-trex---circular-list-error-clockwise"&gt;Error using TRex - Circular list error clockwise&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37672/error-using-trex-with-landxml-file-object-reference-not-set-to-an-instance-of-an-object"&gt;Error using TREX with LandXML file: &amp;quot;Object reference not set to an instance of an object.&amp;quot;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, survey, LIDAR, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, Reality model, CivilStorm, Google Earth, WaterCAD, GPS, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/21</link><pubDate>Wed, 01 Apr 2020 16:39:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 21 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 4/1/2020 4:39:20 PM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;V8i, CONNECT Edition&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 &lt;a href="https://youtu.be/nJsaAbCqjzo"&gt;Raster &lt;/a&gt;(such as TIF / TIFF)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;Protecting Elements with Existing GPS Survey Elevations&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1) Use &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/2821/using-modelbuilder-to-import-external-data"&gt;ModelBuilder&lt;/a&gt;. 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 &amp;quot;build model&amp;quot; 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)&lt;/p&gt;
&lt;p&gt;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 &amp;quot;From GPS?&amp;quot; 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 &amp;quot;flag&amp;quot; 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 &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/23478/query-based-selection-sets-not-updating-in-various-tools-such-as-color-coding-and-annotations"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field &amp;quot;Update Ground Elevation from Terrain Model?&amp;quot; to &amp;quot;false&amp;quot; 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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;Can I Infer Elevations from Surrounding Elements, without a Terrain File?&lt;/h1&gt;
&lt;p&gt;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:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37671/inferring-ground-elevation-from-surrounding-elements"&gt;Inferring ground elevation from surrounding elements&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;How can I use LiDAR data?&lt;/h1&gt;
&lt;p&gt;If your LiDAR data is not already in one of the supported formats (see above - note the additional formats supported in the ArcMap integrated mode), it may need to be processed externally first. For example if it is raw LiDAR data, it may need to be processed into a TIN/DEM, which Trex can then use to assign node elevations. If it is available in raster/image format (for example see &lt;a href="https://njogis-newjersey.opendata.arcgis.com/datasets/c09ee55562e24c3997d0d0db91c85848"&gt;here&lt;/a&gt;&amp;nbsp;or &lt;a href="https://njgin.nj.gov/njgin/edata/elevation/index.html#!/"&gt;here&lt;/a&gt;), you should be able to use the &amp;quot;ArcGIS Raster&amp;quot; data source type when integrating with ArcMap (available with WaterGEMS, SewerGEMS and HAMMER).&lt;/p&gt;
&lt;p&gt;If unsure, &lt;a href="/products/hydraulics___hydrology/f/haestad-hydraulics-and-hydrology-forum"&gt;contact Technical Support&lt;/a&gt;&amp;nbsp;with an example of the data you have, or the file type(s) or any other information about what you have.&lt;/p&gt;
&lt;h1&gt;See Also&lt;/h1&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/47847/trex-error-the-data-source-file-must-contain-at-least-three-unclipped-points-in-order-to-create-an-elevation-map"&gt;Trex error: &amp;quot;The data source file must contain at least three unclipped points in order to create an elevation map&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36577/error-using-trex---circular-list-error-clockwise"&gt;Error using TRex - Circular list error clockwise&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37672/error-using-trex-with-landxml-file-object-reference-not-set-to-an-instance-of-an-object"&gt;Error using TREX with LandXML file: &amp;quot;Object reference not set to an instance of an object.&amp;quot;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, survey, LIDAR, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, Reality model, CivilStorm, Google Earth, WaterCAD, GPS, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/20</link><pubDate>Fri, 07 Feb 2020 19:33:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 20 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 2/7/2020 7:33:37 PM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX, 10.XX.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 &lt;a href="https://youtu.be/nJsaAbCqjzo"&gt;Raster &lt;/a&gt;(such as TIF / TIFF)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;Protecting Elements with Existing GPS Survey Elevations&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1) Use &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/2821/using-modelbuilder-to-import-external-data"&gt;ModelBuilder&lt;/a&gt;. 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 &amp;quot;build model&amp;quot; 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)&lt;/p&gt;
&lt;p&gt;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 &amp;quot;From GPS?&amp;quot; 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 &amp;quot;flag&amp;quot; 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 &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/23478/query-based-selection-sets-not-updating-in-various-tools-such-as-color-coding-and-annotations"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field &amp;quot;Update Ground Elevation from Terrain Model?&amp;quot; to &amp;quot;false&amp;quot; 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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;Can I Infer Elevations from Surrounding Elements, without a Terrain File?&lt;/h1&gt;
&lt;p&gt;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:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37671/inferring-ground-elevation-from-surrounding-elements"&gt;Inferring ground elevation from surrounding elements&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;How can I use LiDAR data?&lt;/h1&gt;
&lt;p&gt;If your LiDAR data is not already in one of the supported formats (see above - note the additional formats supported in the ArcMap integrated mode), it may need to be processed externally first. For example if it is raw LiDAR data, it may need to be processed into a TIN/DEM, which Trex can then use to assign node elevations. If it is available in raster/image format (for example see &lt;a href="https://njogis-newjersey.opendata.arcgis.com/datasets/c09ee55562e24c3997d0d0db91c85848"&gt;here&lt;/a&gt;&amp;nbsp;or &lt;a href="https://njgin.nj.gov/njgin/edata/elevation/index.html#!/"&gt;here&lt;/a&gt;), you should be able to use the &amp;quot;ArcGIS Raster&amp;quot; data source type when integrating with ArcMap (available with WaterGEMS, SewerGEMS and HAMMER).&lt;/p&gt;
&lt;p&gt;If unsure, &lt;a href="/products/hydraulics___hydrology/f/haestad-hydraulics-and-hydrology-forum"&gt;contact Technical Support&lt;/a&gt;&amp;nbsp;with an example of the data you have, or the file type(s) or any other information about what you have.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, survey, LIDAR, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, Reality model, CivilStorm, Google Earth, WaterCAD, GPS, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/19</link><pubDate>Thu, 23 May 2019 23:39:01 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 19 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 5/23/2019 11:39:01 PM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX, 10.XX.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 &lt;a href="https://youtu.be/nJsaAbCqjzo"&gt;Raster &lt;/a&gt;(such as TIF / TIFF)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;Protecting Elements with Existing GPS Survey Elevations&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1) Use &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/2821/using-modelbuilder-to-import-external-data"&gt;ModelBuilder&lt;/a&gt;. 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 &amp;quot;build model&amp;quot; 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)&lt;/p&gt;
&lt;p&gt;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 &amp;quot;From GPS?&amp;quot; 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 &amp;quot;flag&amp;quot; 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 &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/23478/query-based-selection-sets-not-updating-in-various-tools-such-as-color-coding-and-annotations"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field &amp;quot;Update Ground Elevation from Terrain Model?&amp;quot; to &amp;quot;false&amp;quot; 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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;Can I Infer Elevations from Surrounding Elements, without a Terrain File?&lt;/h1&gt;
&lt;p&gt;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:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37671/inferring-ground-elevation-from-surrounding-elements"&gt;Inferring ground elevation from surrounding elements&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, survey, LIDAR, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, Reality model, CivilStorm, Google Earth, WaterCAD, GPS, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/18</link><pubDate>Tue, 20 Mar 2018 13:39:40 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 18 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 3/20/2018 1:39:40 PM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX, 10.XX.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;Protecting Elements with Existing GPS Survey Elevations&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1) Use &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/2821/using-modelbuilder-to-import-external-data"&gt;ModelBuilder&lt;/a&gt;. 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 &amp;quot;build model&amp;quot; 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)&lt;/p&gt;
&lt;p&gt;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 &amp;quot;From GPS?&amp;quot; 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 &amp;quot;flag&amp;quot; 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 &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/23478/query-based-selection-sets-not-updating-in-various-tools-such-as-color-coding-and-annotations"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field &amp;quot;Update Ground Elevation from Terrain Model?&amp;quot; to &amp;quot;false&amp;quot; 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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;Can I Infer Elevations from Surrounding Elements, without a Terrain File?&lt;/h1&gt;
&lt;p&gt;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:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/37671/inferring-ground-elevation-from-surrounding-elements"&gt;Inferring ground elevation from surrounding elements&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, survey, LIDAR, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, Reality model, CivilStorm, Google Earth, WaterCAD, GPS, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/17</link><pubDate>Tue, 20 Feb 2018 15:00:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 17 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 2/20/2018 3:00:20 PM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX, 10.XX.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;What if I also have GPS survey elevations for some elements?&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1) Use &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/2821/using-modelbuilder-to-import-external-data"&gt;ModelBuilder&lt;/a&gt;. 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 &amp;quot;build model&amp;quot; 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)&lt;/p&gt;
&lt;p&gt;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 &amp;quot;From GPS?&amp;quot; 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 &amp;quot;flag&amp;quot; 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 &lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/23478/query-based-selection-sets-not-updating-in-various-tools-such-as-color-coding-and-annotations"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field &amp;quot;Update Ground Elevation from Terrain Model?&amp;quot; to &amp;quot;false&amp;quot; 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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, survey, LIDAR, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, Reality model, CivilStorm, Google Earth, WaterCAD, GPS, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/16</link><pubDate>Thu, 26 Oct 2017 16:13:12 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 16 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 10/26/2017 4:13:12 PM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX, 10.XX.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;" alt=" " border="0" src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1&gt;How can I use data from ContextCapture?&lt;/h1&gt;
&lt;p&gt;See article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/36828/consuming-contextcapture-production-files-within-your-hydraulic-model"&gt;Consuming ContextCapture production files within your hydraulic model&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, CivilStorm, Google Earth, WaterCAD, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/15</link><pubDate>Fri, 02 Jun 2017 12:50:40 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 15 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 6/2/2017 12:50:40 PM&lt;br /&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;table style="border:0px solid #dce5f0;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX, 10.XX.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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)&amp;nbsp;files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="margin-right:auto;margin-left:auto;display:block;" alt=" " src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, tif, StormCAD, SewerGEMS, Triangulated, DEM, tin, .tif, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, CivilStorm, Google Earth, WaterCAD, TIFF&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/14</link><pubDate>Tue, 25 Apr 2017 17:01:30 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>MPachlhofer</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 14 posted to OpenFlows | Water Infrastructure Wiki by MPachlhofer on 4/25/2017 5:01:30 PM&lt;br /&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;table style="border:0px solid #dce5f0;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX, 10.XX.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 Raster, TIN and DEM files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="margin-right:auto;margin-left:auto;display:block;" alt=" " src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, StormCAD, SewerGEMS, Triangulated, DEM, tin, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, CivilStorm, Google Earth, WaterCAD&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex)</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/13</link><pubDate>Thu, 26 Jan 2017 17:51:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 13 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 1/26/2017 5:51:55 PM&lt;br /&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;table style="border:0px solid #dce5f0;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX, 10.XX.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 Raster, TIN and DEM files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="margin-right:auto;margin-left:auto;display:block;" alt=" " src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, StormCAD, SewerGEMS, Triangulated, DEM, tin, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, CivilStorm, Google Earth, WaterCAD&lt;/div&gt;
</description></item><item><title>Using Terrain Extractor (Trex</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/12</link><pubDate>Thu, 26 Jan 2017 17:50:51 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 12 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 1/26/2017 5:50:51 PM&lt;br /&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;table style="border:0px solid #dce5f0;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WaterGEMS, WaterCAD, HAMMER, SewerGEMS, &amp;nbsp;SewerCAD, StormCAD, CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX, 10.XX.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 Raster, TIN and DEM files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="margin-right:auto;margin-left:auto;display:block;" alt=" " src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ESRI ArcMap integrated mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png"&gt;&lt;img src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-00-32/ArcMapTrex.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, StormCAD, SewerGEMS, Triangulated, DEM, tin, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, CivilStorm, Google Earth, WaterCAD&lt;/div&gt;
</description></item><item><title>TRex Terrain Extractor Tool</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/11</link><pubDate>Fri, 04 Nov 2016 18:09:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 11 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 11/4/2016 6:09:19 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img width="189" height="60" style="border-width:0px;" alt=" " src="/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="border:0px solid #dce5f0;width:500px;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Bentley WaterGEMS, Bentley WaterCAD, Bentley HAMMER, Bentley SewerGEMS, Bentley SewerCAD, Bentley StormCAD, Bentley CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 Raster, TIN and DEM files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Standalone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="margin-right:auto;margin-left:auto;display:block;" alt=" " src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ArcMap&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-components-multipleuploadfilemanager/c843087a_2D00_c58a_2D00_4867_2D00_b052_2D00_f0d6328f6436-7344-complete/ArcMapTrex2.png"&gt;&lt;img src="/resized-image/__size/940x0/__key/communityserver-components-multipleuploadfilemanager/c843087a_2D00_c58a_2D00_4867_2D00_b052_2D00_f0d6328f6436-7344-complete/ArcMapTrex2.png" style="display:block;margin-left:auto;margin-right:auto;" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What Method of Interpolation is used by Trex and the Terrain Model Tool?&lt;/h1&gt;
&lt;p&gt;Please refer to this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/31544.interpolation-method-used-by-terrain-extractor-trex"&gt;Interpolation Method Used by Terrain Extractor (Trex)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Digital Elevation Model, StormCAD, SewerGEMS, Triangulated, DEM, tin, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, CivilStorm, Google Earth, WaterCAD&lt;/div&gt;
</description></item><item><title>TRex Terrain Extractor Tool</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/10</link><pubDate>Tue, 19 Jul 2016 02:47:57 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 10 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 7/19/2016 2:47:57 AM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img width="189" height="60" style="border-width:0px;" alt=" " src="/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="border:0px solid #dce5f0;width:500px;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Bentley WaterGEMS, Bentley WaterCAD, Bentley HAMMER, Bentley SewerGEMS, Bentley SewerCAD, Bentley StormCAD, Bentley CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 Raster/DEM files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="margin-right:auto;margin-left:auto;display:block;" alt=" " src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;h1&gt;&lt;br /&gt;What if I Have an Image From Google Earth?&lt;/h1&gt;
&lt;div class="content full" id="375965"&gt;
&lt;div class="content"&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/road___site_design/w/road_and_site_design__wiki/create-an-inroads-dtm-from-google-earth"&gt;Create an InRoads DTM from Google Earth&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: StormCAD, SewerGEMS, Terrain Extractor, SewerCAD, Reviewed2016, WaterGEMS, TRex, CivilStorm, Google Earth, WaterCAD&lt;/div&gt;
</description></item><item><title>TRex Terrain Extractor Tool</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/9</link><pubDate>Fri, 03 Jun 2016 19:48:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Scott Kampa</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 9 posted to OpenFlows | Water Infrastructure Wiki by Scott Kampa on 6/3/2016 7:48:49 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img width="189" height="60" style="border-width:0px;" alt=" " src="/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="border:0px solid #dce5f0;width:500px;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Bentley WaterGEMS, Bentley WaterCAD, Bentley HAMMER, Bentley SewerGEMS, Bentley SewerCAD, Bentley StormCAD, Bentley CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;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 Raster/DEM files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. &lt;strong&gt;NOTE:&lt;/strong&gt; Tank elevation or level range will not be included with TRex, only the ground elevation.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="margin-right:auto;margin-left:auto;display:block;" alt=" " src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;Starting with the SELECTseries 5 release, 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:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Modeling, Extractor, Reviewed2016, TRex, terrain, how to, Bentley WaterGEMS, SELECTsupport&lt;/div&gt;
</description></item><item><title>TRex Terrain Extractor Tool</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/8</link><pubDate>Mon, 19 Oct 2015 14:32:48 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Jesse Dringoli</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 8 posted to OpenFlows | Water Infrastructure Wiki by Jesse Dringoli on 10/19/2015 2:32:48 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img width="189" height="60" style="border-width:0px;" alt=" " src="/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="border:0px solid #dce5f0;width:500px;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Bentley WaterGEMS, Bentley WaterCAD, Bentley HAMMER, Bentley SewerGEMS, Bentley SewerCAD, Bentley StormCAD, Bentley CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;The Terrain Extractor (Trex) tool can automatically assign elevations to any nodes based on the nearest elevations from a contour dxf, shapefile, landxml file, spot elevations or a raster/dem. Note that in order to use a raster/DEM, you will need to be using WaterGEMS within the ArcGIS platform. 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.&lt;/p&gt;
&lt;p&gt;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 junctions in the model. Meaning, the contour must spatially overlap the model, with both the junctions and the contours in the correct coordinates.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="margin-right:auto;margin-left:auto;display:block;" alt=" " src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Terrain Model Tool&lt;/h1&gt;
&lt;p&gt;Starting with the SELECTseries 5 release, 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 below articles:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21498.what-s-new-in-sewergems-v8i-selectseries-5"&gt;What&amp;#39;s new in SewerGEMS V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16200.what-s-new-in-sewercad-selectseries-4"&gt;What&amp;#39;s new in SewerCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/16199.what-s-new-in-stormcad-selectseries-4"&gt;What&amp;#39;s new in StormCAD V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/21542.what-s-new-in-civilstorm-v8i-selectseries-5"&gt;What&amp;#39;s new in CivilStorm V8i SELECTseries 5?&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Modeling, Extractor, TRex, terrain, how to, Bentley WaterGEMS, SELECTsupport&lt;/div&gt;
</description></item><item><title>TRex Terrain Extractor Tool</title><link>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex/revision/7</link><pubDate>Fri, 02 Oct 2015 18:53:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2110075a-9f35-44ab-b4dd-4d74bf7f640f</guid><dc:creator>Scott Kampa</dc:creator><comments>https://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/8281/using-terrain-extractor-trex#comments</comments><description>Revision 7 posted to OpenFlows | Water Infrastructure Wiki by Scott Kampa on 10/2/2015 6:53:19 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img width="189" height="60" style="border-width:0px;" alt=" " src="/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="border:0px solid #dce5f0;width:500px;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Bentley WaterGEMS, Bentley WaterCAD, Bentley HAMMER, Bentley SewerGEMS, Bentley SewerCAD, Bentley StormCAD, Bentley CivilStorm&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.XX.XX&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Layout and Data Input&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dan Iannicelli, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;How to&lt;/h1&gt;
&lt;p&gt;Automatically assign ground elevation data&amp;nbsp;to nodes using the TRex Terrain Extractor tool.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;The Terrain Extractor (Trex) tool can automatically assign elevations to any nodes based on the nearest elevations from a contour dxf, shapefile, landxml file, spot elevations or a raster/dem. Note that in order to use a raster/DEM, you will need to be using WaterGEMS within the ArcGIS platform. 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.&lt;/p&gt;
&lt;p&gt;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 junctions in the model. Meaning, the contour must spatially overlap the model, with both the junctions and the contours in the correct coordinates.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Nodes to Update&amp;quot;. 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.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;img style="margin-right:auto;margin-left:auto;display:block;" alt=" " src="/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-32/7750.TRex-Wiki.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&amp;nbsp;&lt;/b&gt;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.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Modeling, Extractor, TRex, terrain, how to, Bentley WaterGEMS, SELECTsupport&lt;/div&gt;
</description></item></channel></rss>