You are here: Menu Commands > Surfaces > DTM file functions > Create DTM from string file
GEOVIA Surpac

Create DTM from string file

You can use this function to create a surface from string data by forming a set of non-overlapping adjacent triangles between points in a string file.

To run this function: Choose Surfaces > DTM file functions > Create DTM from string file, or...

  • In the Function Chooser, type CREATE DTM, and press ENTER.
  • In the Layers pane, right-click and select Create DTM.

Fields on the Create a DTM from a string file form

Field Description
Define the string file

Location

The input string file from which the DTM will be formed. The resultant DTM file will have the same Location Name as the string file that was used to create it, but have an extension of .dtm.

Object ID

The ID that is assigned to the surface. The ID must be a positive integer.

Object Name The name that is assigned to the surface. The name can be blank or any character value; it will only be used in reports.
Projection plane
Create on:

The plane the DTM is created on. You can choose:

  • The XY plane: Uses global coordinates. This plane is usually used for topographic data.
  • The active plane: Uses the viewing plane that is currently active in Graphics.
  • Note: This option is not available if the active plane is the XY plane.

  • The best-fit plane: Uses the coordinates of the plane that best fits the data in the string file or layer.

Note: If you select the best-fit plane, the After creating the surface, change the current plane to the best-fit plane check box becomes active.

After creating the surface, change the current plane to the best-fit plane
  • Selected: The current plane is changed to the best-fit plane after the surface is created.
  • Cleared: Theplane is not changed after the surface is created.
Define other parameters

Common point check distance

The distance within which points are given the same X and Y coordinates. This is useful in avoiding problems that can occur when points are less than 0.005 from each other and some strings are being used as break lines. The maximum value for this field is 0.02.

Strings to act as break lines

  • Selected: Triangles will not form across the specified string break line. A check is performed to make sure the break lines do not intersect before the DTM is formed.
  • Cleared: All data is treated as random points and string lines are ignored.

If the surface is to accurately model the terrain, break line strings should be used. Break line strings are those strings which represent physical features that you can see in the real world. For example, the crest of a pit, or a fault in a geological model. If a string file has been formed correctly, then no break line strings will cross over other break line strings, unless the two strings cross at a common point.

Any spot height strings

  • Selected: Strings represent features where surface triangles should not be formed.
  • Cleared: All strings represent spot heights.

Spot height string range

The range of spot height strings.

Perform break line test

  • Selected: Test if break lines intersect. Surfaces will only be created if break lines do not intersect.
  • Cleared: Do not perform the break line test. Recommended only if you know the break lines definitely do not intersect.

Interpolate additional points

  • Selected: Interpolate additional points before creating the surface. You may want to select this option when the strings have long straight segments with few points, such as are generated during pit design.
  • Cleared: Do not interpolate additional points.

Point interpolation distance

If Interpolate additional points is selected, the distance at which new points are created.

Define the boundary string to clip the DTM

Would you like to clip the DTM to a boundary after creation?

  • Selected: Clip the surface to a boundary after the surface is created.
  • Cleared: Do not clip the surface to a boundary after the surface is created.

The boundary string can consist of any number of nested segments. The direction of these segments (clockwise / anticlockwise) is not important.

Imagine that you are viewing a surface along the normal to the plane used during surface creation (that is, looking directly at the plane), the rules for clipping are:

  • For a single segment string, "inside" the segment refers to triangles physically inside the segment.
  • For a string with a single level of nested segments, "inside" refers to triangles physically inside the outermost segment but outside any inner segments.
  • Multiple levels of nesting are handled by alternating "inside" and "outside" for each level of nesting. For example, if the black lines are segments of a string, the red areas are considered "inside" the string and the white areas are "outside":

Boundary, String

The boundary string file along with its ID and string number. The boundary string, and all of its segments, must be closed.

Retain triangles inside boundary

The portion of the surface to be retained is inside the specified boundary string.

Retain triangles outside boundary The portion of the surface to be retained is outside the specified boundary string.

Output

A .dtm file is created which can later be used by other commands or viewed in Graphics.

If you specified Strings to act as break lines, and crossing break lines are identified, each pair of break line segments is checked. The line pairs that cross are reported in a file with a Location and Id Number the same as the input string file but with a .not extension.

Troubleshooting

Message Description

Triangle not found for point

String xxx segment xxx point offset xxx

No triangle point is common with the breakline

String xxx segment xxx point offset xxx

These error messages indicate that it was not possible to create the surface due to the geometric arrangement of strings, segments and points.

Note: The string and segment reported in the error message are not necessarily the cause of the problem. However, they do indicate the general spatial location where the problem occurs.

Error applying breakline to triangles. See warning messages for details. A problem has occurred when adding a break line to the DTM surface. The warning messages will indicate the location of the problem.

Errors

Error Description Solution
SMALL OFFSET

Distance from P1 to P2 is hundreds of units, for example 200 m.

The distance between each of the 5 parallel lines is in single units, for example 5 m

String geometry of this type is generally created by the Pit design module. The special feature here is that there are concentric strings that have relatively large distances between consecutive points on the string and relatively short distances between the strings. Create points at more regular intervals along the strings so that the ratio of distance between points on a string to the distance between the strings is not so extreme. In the case of pit design data, make the points at more regular intervals in the base string before you start the pit design.
SMALL OFFSET fig 4
Offset of Point P1 from line P2 to P3 is very small, of the order of centimetres. A point on one line comes very close to intersecting another line but does not actually meet it. Move P1 to be either exactly on the line P2-P3 or move it further from the line P2-P3.
SMALL DISTANCE fig 5
Distance between P1 to P2 and P3 to P4 is very small, of the order of centimetres. A point on one line comes very close to intersecting another line but does not actually meet it.

Move the points so that they are exactly the same in X, Y, and Z, or move them further apart.

Strings xxx and xxx intersect at xxxxxxN xxxxxE

xxx Breakline intersections found ........ Cannot form the DTM

String file failed the break line intersection test

These error messages appear only if some of the strings are being used as break lines and the break line intersection test is being performed. These messages indicate that an intersection has been found between two strings that are being used as break lines. The string numbers and coordinates at which the intersections have been found are displayed so that you can determine the source of the problem and fix it.

There are two ways to fix this problem. The first is to treat one of the strings as a spot height string. The second is to edit the string file in Graphics and move the locations of some of the points to prevent the intersections occurring.

Incorrect number of triangles formed

Triangle array is scrambled

Fatal DTM error - Triangles are not adjacent

Triangle stack underflow

Triangle list overflow

Searched full circle and can't find a neighbour

These error messages indicate that a severe error condition has been found during the creation of the DTM.

If you encounter any of these messages contact GEOVIA Support.