Professional Documents
Culture Documents
(Gemcom)
All rights reserved. Gemcom publishes this documentation for the sole use of Gemcom licensees.
Without written permission, you may not sell, reproduce, store in a retrieval system, or transmit
any part of this documentation. For such permission, or to obtain extra copies please contact your
local Gemcom office, or visit www.gemcomsoftware.com.
This software and documentation is proprietary to Gemcom and, except where expressly provided
otherwise, does not form part of any contract. Changes may be made in products or services at
any time without notice.
While every precaution has been taken in the preparation of this manual, neither the authors nor
Gemcom assumes responsibility for errors or omissions. Neither will be held liable for any damages
caused or alleged to be caused from the use of the information contained herein.
Gemcom Software International Inc., Gemcom, the Gemcom logo, combinations thereof, and
GEMS, Surpac, Minex, Whittle, Gemcom InSite, Gemcom Hub, and PCBC are trademarks of
Gemcom Software International Inc. or its wholly-owned subsidiaries.
Product
Surpac 6.2
Table of Contents
Introduction
Overview
Requirements
Workflow
Naming Conventions
10
10
11
Creating a DTM
12
12
14
17
19
Viewing DTMs
22
22
23
27
Transforming a DTM
Task: Transform a DTM to a Different Coordinate System
DTM Volume Calculations
28
28
31
31
32
33
33
34
Clipping a DTM
40
40
41
Sectioning a DTM
44
44
45
Creating Contours
47
47
48
49
51
51
51
52
Draping an Image
Task: Drape an Image Over a DTM.
DTM/DTM Intersections
55
55
58
58
58
59
Introduction
Introduction
Overview
Surface Modelling uses triangulation to create two-dimensional models known as Digital Terrain
Models (DTMs). This document introduces the theory behind surface modelling processes and
provides detailed examples using the surface modelling functions in Surpac.By working through this
tutorial you will gain skills in the construction, use of and modification of DTMs.
Requirements
The DTM Surfaces tutorial assumes that you have a basic knowledge of Surpac. If you are a new
Surpac user, you should go through the Introduction to Surpac tutorial before going through this
topic.
You will also need.
l
l
Workflow
Note. This workflow demonstrates the steps in this tutorial. There are other ways to achieve a
result.
Surpac 6.2
Page 5 of 60
DTM Surfaces
Surfaces are used in Surpac for such things as 3D visualisation and for calculating volumes. Almost
any surface can be modelled as a DTM, including natural topography, lithological contacts,
bedrock/overburden contact, or water tables.
DTMs are made of triangles, with each point of each triangle matched to a point in the original string
file. Consequently DTM files are not valid without the original string files. That is, a DTM file cannot
be opened if the original string file of the same name is not accessible.
DTMs cannot fold back on themselves. That is, a DTM cannot have multiple Z values for a given X, Y
coordinate. It is not possible to model overhanging or vertical surfaces with a DTM surface.
Surpac 6.2
Page 6 of 60
DTM Surfaces
Naming Conventions
The objects you create in Surpac are numbered by a system similar to that of string and string
segment numbers.
String - object
Segment trisolation
Point - triangle
When you define an object you explicitly assign it both an object number and a trisolation number.
The object is then always referred to by this object and trisolation number.
The object number may be any in the range of 1 to 32000. The trisolation number may be any
positive integer. However, for most functions the object must be named object 1, trisolation 1.
Surpac 6.2
Page 7 of 60
DTM Surfaces
Spot height strings contain points which represent non-linear or point features, such as hill peaks,
surface low points, gridded points, borehole collars etc. The lines connecting the points in the spot
height string in graphics do not infer a physical line.
Surpac 6.2
Page 8 of 60
DTM Surfaces
Surpac 6.2
Page 9 of 60
DTM Surfaces
The name of the work directory is displayed in the title bar of the Surpac window.
Surpac 6.2
Page 10 of 60
DTM Surfaces
The name of the work directory is displayed in the title bar of the Surpac window.
Surpac 6.2
Page 11 of 60
DTM Surfaces
Creating a DTM
Creating a DTM
Task: Perform Graphical Creation of a DTM
1. Click the Reset graphics icon
2. Open topo1.str.
topo1 is displayed.
Surpac 6.2
Page 12 of 60
DTM Surfaces
Creating a DTM
Note. Because the string file already exists, you will be asked if you wish to replace it.
7. Click Yes.
Note. To see all of the steps performed in this task run 01a_create_DTM_from_layer.tcl. You will
need to click Apply on any forms presented.
Surpac 6.2
Page 13 of 60
DTM Surfaces
Creating a DTM
Note. In this case the Strings to act as break lines check box is not ticked. The
message window informs you of the processing as the DTM is created.
DTM information is displayed in the message window.
Surpac 6.2
Page 14 of 60
DTM Surfaces
Creating a DTM
Note. There are triangles in the DTM that are created across strings. This is not a
desired result.
6. Choose Surfaces > DTM File functions > Create DTM from string file.
Surpac 6.2
Page 15 of 60
DTM Surfaces
Creating a DTM
Note. In this case, the Strings to act as break lines check box is ticked.
8. Close the log file.
9. Open pit1.dtm.
Surpac 6.2
Page 16 of 60
DTM Surfaces
Creating a DTM
Note. To see all of the steps performed in this task run _01b_create_DTM_from_string_file.tcl.
You will need to click Apply on any forms presented.
Note. This file is a survey of drill hole collars prior to mining and may be used to model
the natural surface. Notice that the file consists of one spot height string.
3. Choose Display > Hide everything.
4. Choose Display > Point > Markers.
5. Enter the information as shown, and then click Apply.
Surpac 6.2
Page 17 of 60
DTM Surfaces
Creating a DTM
6. Choose Surfaces > DTM File functions > Create DTM from string file.
7. Enter the information as shown, and then click Apply.
Surpac 6.2
Page 18 of 60
DTM Surfaces
Creating a DTM
Surpac 6.2
Page 19 of 60
DTM Surfaces
Creating a DTM
4. Enter the information as shown on each of the following forms, and then click Apply.
Note. You will see that string 9999 is a spot height string
5. Choose Surfaces > DTM File functions > Create DTM from string file.
Surpac 6.2
Page 20 of 60
DTM Surfaces
Creating a DTM
Note. To see all of the steps performed in this task run _01d_create_dtm_using_breaklines_and_
spot_heights.tcl. You will need to click Apply on any forms presented.
Surpac 6.2
Page 21 of 60
DTM Surfaces
Viewing DTMs
Viewing DTMs
Task: Colour a DTM by Elevation
1. Click the Reset graphics icon
.
2. Open pit1.dtm and rotate it in graphics.
An oblique view of the pit is displayed.
Surpac 6.2
Page 22 of 60
DTM Surfaces
Viewing DTMs
Note. To see all of the steps performed in this task run _02_colour_dtm_by_elevation.tcl. You will
need to click Apply on any forms presented.
Surpac 6.2
Page 23 of 60
DTM Surfaces
Viewing DTMs
5. Choose View > Data view options > View scale factors.
Tip. To give a more realistic view, increase the Z scale by a factor of 3.
6. Enter the information as shown, and then click Apply.
7. On the status bar at the bottom of the screen, click the design string button
8. Set the Design string number to 500, and then click Apply.
Next you will create a new layer for the design string.
9. Click the New button in the Layers Pane.
10. Enter fly as the name of the new layer, and then click Apply.
11. From the toolbar, select the snapping list options and click on the Triangle option.
Surpac 6.2
Page 24 of 60
DTM Surfaces
Viewing DTMs
Surpac 6.2
Page 25 of 60
DTM Surfaces
Viewing DTMs
17. Right click on the eom_pit.dtm layer in the Layers pane to bring up a popup menu.
18. From the popup menu, click Selectable to turn it off for the layer.
Notice that the padlock becomes closed, indicating that the layer is no longer selectable.
This ensures that when you start the animation, the string will be selected and not the
DTM.
19. Choose View > Data view options > View along a string.
20. Enter the information as shown, and then click Apply.
Surpac 6.2
Page 26 of 60
DTM Surfaces
Viewing DTMs
Note. To see all of the steps performed in this task run _03a_fly_through.tcl. You will need to click
Apply on any forms presented.
Note. This process will produce many output files so the Max. frame distance has
been changed to capture an image every 20 metres.
4. Click any point on string 500 to start the animation.
Note. The output files (fly001.gif, fly002.gif) can be used to create an animated gif file using
other software.
Note. To see all of the steps performed in this task run _03b_fly_through_save_images.tcl. You
will need to click Apply on any forms presented.
Surpac 6.2
Page 27 of 60
DTM Surfaces
Transforming a DTM
Transforming a DTM
Task: Transform a DTM to a Different Coordinate System
1. Click the Reset graphics icon
2. Open topo1.dtm.
topo1 is displayed.
3. Open pit2.dtm.
4. Click Zoom to extents.
Both the DTM surfaces are displayed.
Surpac 6.2
Page 28 of 60
DTM Surfaces
Transforming a DTM
By filling in the form in this way, you will create a new dtm called transformed_pit.
Old points are the coordinates in the old system, New points are the
coordinates of the same two points in the new system.
l A Z correction of -800 is applied to move the pit 800 metres lower.
7. Verify that the transformation parameters are correct on the Verifytransformation
parameters form.
l
If the grids are plane metric grids, the scale factor should be 1.0. Any variation represents
an error. In the example in this tutorial, there is an error of 5 mm in 10 m.
Note. By default the rotation is displayed in DDD.MMSS format. Shift Y is the
difference between Y1 (old) and Y1 (new) as entered on the Transform Coordinates of
Triangles (2d) form. Shift X is the difference between X1 (old) and X1 (new). In other
words, the shifts are the difference in Nothing and Easting between the coordinates of
the first point in the two systems.
8. Select the Accept these adjustments box, and then click Apply.
Surpac 6.2
Page 29 of 60
DTM Surfaces
Transforming a DTM
9. Open transformed_pit2.dtm.
Note. To see all of the steps performed in this task run _04_transform_DTM.tcl. You will need to
click Apply on any forms presented.
Surpac 6.2
Page 30 of 60
DTM Surfaces
3. Choose Surfaces > DTM File functions > Line of intersection between 2 DTMs.
4. Enter the information as shown, and then click Apply.
5. Open intersection1.str.
6. Click the
Surpac 6.2
Page 31 of 60
DTM Surfaces
Note. To see all of the steps performed in this task run _04a_create_boundary_string_file_
based.tcl. You will need to click Apply on any forms presented.
Note. In the graphics-based method, you need to save the string in the intersection
layer to a string file if you wish to use it for further processing.
Surpac 6.2
Page 32 of 60
DTM Surfaces
Note. To see all of the steps performed in this task run _04b_create_boundary_string_graphics_
based.tcl. You will need to click Apply on any forms presented.
Surpac 6.2
Page 33 of 60
DTM Surfaces
Note. To see all of the steps performed in this task run _05a_cut_and_fill_volumes.tcl. You will
need to click Apply on any forms presented.
Surpac 6.2
Page 34 of 60
DTM Surfaces
Note. String 2 of pit2.str is used as the boundary string for the volume calculation.
4. Open dhc2.dtm.
5. Right click to the right of the menus, move the cursor to Toolbars, and then click Scale
and transparency.
Surpac 6.2
Page 35 of 60
DTM Surfaces
Surpac 6.2
Page 36 of 60
DTM Surfaces
9. Left click, then right click the check box as shown, and select Field Help.
Surpac 6.2
Page 37 of 60
DTM Surfaces
13.
14.
15.
16.
Surpac 6.2
Close pit2.not.
Open bdyres2.str.
Choose Display > Point > Attributes.
Enter the information as shown, and then click Apply.
Page 38 of 60
DTM Surfaces
Note. To see all of the steps performed in this task run _05b_net_volume_between_dtms.tcl.
You will need to click Apply on any forms presented.
Surpac 6.2
Page 39 of 60
DTM Surfaces
Clipping a DTM
Clipping a DTM
Task: Clip a DTM - File Based Method
1. Click the Reset graphics icon
.
2. Choose Surfaces > DTM File functions > Create DTM from string file.
3. Enter the information as shown below, and then click Apply.
Note. In this case we are using the same string to clip the DTM as was used to define
the boundary of the DTM. Since the operation was performed directly on the input files,
there is no need to manually save the DTM file.
4. Close the log file generated in the previous step.
5. Open back1665.dtm.
Surpac 6.2
Page 40 of 60
DTM Surfaces
Clipping a DTM
Note. To see all of the steps performed in this task run _06a_clip_dtm_file_based.tcl. You will
need to click Apply on any forms presented.
Surpac 6.2
Page 41 of 60
DTM Surfaces
Clipping a DTM
6. Choose Surfaces > Clip or intersect DTMs > Clip DTM with string.
7. Select any point on the string.
8. Enter the information as shown, and then click Apply.
Surpac 6.2
Page 42 of 60
DTM Surfaces
Clipping a DTM
9. Save as lev1665.dtm.
Surpac 6.2
Page 43 of 60
DTM Surfaces
Sectioning a DTM
Sectioning a DTM
Task: Create a DTM Section Axis Line
1.
2.
3.
4.
5. Save pit1.dtm.
Note. To see all of the steps performed in this task run _07a_create_section_axis_line.tcl. You will
need to click Apply on any forms presented.
Surpac 6.2
Page 44 of 60
DTM Surfaces
Sectioning a DTM
Note. The first section is extracted from the axis start. Sections will not be extracted
past the axis end point.
Surpac 6.2
Page 45 of 60
DTM Surfaces
Sectioning a DTM
The axis line is displayed on the left, the resulting section coordinates being displayed on
the right.
Note. To see all of the steps performed in this task run _07b_sectioning_pit.tcl. You will need to
click Apply on any forms presented.
Surpac 6.2
Page 46 of 60
DTM Surfaces
Creating Contours
Creating Contours
Task: Create DTM Contours File Based
1. Click the Reset graphics icon
.
2. Choose Surfaces > Contouring > Contour DTM file.
3. Enter the information as shown, and then click Apply.
4. Open pit1.dtm.
5. Open contour1.str.
The plan view of the pit is displayed.
Note. To see all of the steps performed in this task run 08a_create_dtm_contours_file_based.tcl.
You will need to click Apply on any forms presented.
Surpac 6.2
Page 47 of 60
DTM Surfaces
Creating Contours
Surpac 6.2
Page 48 of 60
DTM Surfaces
Creating Contours
4.
5.
6.
7.
Open annotate.str.
Choose Display > Hide everything.
Choose Display > Point > Attributes.
Enter the information as shown, and then click Apply.
8. Open index1.str.
9. Open contour1.str
Surpac 6.2
Page 49 of 60
DTM Surfaces
Creating Contours
Note. To see all of the steps performed in this task run _08b_create_index_contour_file_with_
annotations.tcl. You will need to click Apply on any forms presented.
Surpac 6.2
Page 50 of 60
DTM Surfaces
7. Left-click your mouse and hold down the button to rotate the view of the drill hole collars
as shown, to enable you to select the markers and not the DTM.
Surpac 6.2
Page 51 of 60
DTM Surfaces
Note. To see all of the steps performed in this task run _09a_draping_a_spot_height_string_over_
a_dtm.tcl. You will need to click Apply on any forms presented.
4. Click the
icon to view the data in the XZ plane.
5. Choose Display > Point > Markers.
6. Enter the information as shown on the following forms, and then click Apply.
Surpac 6.2
Page 52 of 60
DTM Surfaces
Note. In this case, the option to Interpolate new points is ticked to create new points
where the string crosses a triangle edge.
10. Choose Display > Point > Markers.
11. Enter the information as shown, and then click Apply.
Surpac 6.2
Page 53 of 60
DTM Surfaces
12. Choose View > Data view options > Plan view, and then click the
DTM triangle edges.
Note. The points have been created at the intersection of the string and DTM triangle
edges.
13. Save the string as centreline_draped.str.
Note. To see all of the steps performed in this task, run _09b_draping_a_non_spot_height_
string_over_a_dtm.tcl. You will need to click Apply on any forms presented.
Surpac 6.2
Page 54 of 60
DTM Surfaces
Draping an Image
Draping an Image
Task: Drape an Image Over a DTM.
1. Click the Reset graphics icon
2. Open eom_pit.dtm.
3. Choose File > Images > Drape an image file over a DTM.
4. Click anywhere on the DTM.
Note. You will be prompted to Select the triangle of interest.
5. Enter the information as shown, and then click Apply.
Note. The name used for the Registration file must not exist when you are using the
register with new points option.
Surpac 6.2
Page 55 of 60
DTM Surfaces
Draping an Image
The DTM is displayed first, then the image to drape over the DTM.
6. Follow the prompts in yellow at the bottom of the screen to select a series of registration
points; firstly in the image, and then in the DTM.
Tip. Try to pick points that represent features easily recognisable on both the image and
the DTM. Also, pick enough points to cover the majority of your area of interest.
7. When sufficient registration points have been defined (minimum = 3 points), press Esc to
display the coordinates of your registration points.
8. Click Apply.
The pit with image drape is displayed.
Surpac 6.2
Page 56 of 60
DTM Surfaces
Draping an Image
11. Rotate the image to see the full effects of the rescaled image drape.
Note. To see all of the steps performed in this task run _10_image_draping.tcl. You will need to
click Apply on any forms presented.
Surpac 6.2
Page 57 of 60
DTM Surfaces
DTM/DTM Intersections
DTM/DTM Intersections
Task: Create an Upper Triangles Surface of 2 DTMs
1.
2.
3.
4.
5.
Note. The layer name cannot be the same as any of the current layers.
6. Follow the prompts highlighted at the bottom of the screen.
Note. The image will be displayed in a different colour until the calculation function is
deselected.
7. Press Esc.
The DTM is displayed.
Surpac 6.2
Page 58 of 60
DTM Surfaces
DTM/DTM Intersections
Note. The layer name cannot be the same as any of the current layers.
6. Follow the prompts highlighted in yellow at the bottom of the screen.
Notes. The upper DTM (topography) must be selected first, followed by the lower DTM
(pit). The image will be displayed in a different colour until the calculation function is
deselected.
7. Press ESC.
Surpac 6.2
Page 59 of 60
DTM Surfaces
DTM/DTM Intersections
Note. To see all of the steps performed in this task run _11c_create_solid_intersecting_2_
dtms.tcl. You will need to click Apply on any forms presented.
Surpac 6.2
Page 60 of 60
DTM Surfaces