Você está na página 1de 11

May 29, 2017

Creating and Plotting GDM Strip


Logs in GEMS
GDM Strip Log application
A application has been added to GEMS, which will create strip logs from a Gemcom Workspace.
This third party application has been integrated into Gemcom using COM technology. This
optional licensable application is available for an additional cost to our clients

Pressing F1 whenever a GDM dialog is open will bring up context sensitive help for that
dialogue item.

How to use it?


Before opening Gemcom
You must create an SQL ODBC data source (for SQL only) See Appendix A [this
is usually an administrators task]
You must create a Query (for ACCESS 2000 or later) or View (for SQL)
After opening Gemcom
1. Create a GDM project
2. Link data source(s)
3. Create palettes
4. Create Log Documents
5. Print/view Strip Log Document.

Before opening Gemcom


You must create at least one query (using Access) or view (using SQL) that links the header
table with the interval table to be displayed. Since GEMS uses JET 4 as a database you must
be using Access 2000 or later in order to create the query.

How to create an Access Query


o Using MS Access open the project mdb file GD_xxxxxx.mdb
o Press the Query button and select Create Query by using Wizard
o Using the dialogue provided select the Drillhole header table and choose the Hole-
ID field, move it into the right hand Box

1
May 29, 2017
o Next select a Drillhole sub table(e.g. Assays) and move the desired fields into the
right hand box. Press Finish. If more than one interval table will be displayed in the
striplog then you must create a separate query for each table.

How To Create an SQL View

A view can be created in more than one way in SQL.


o Use the Create View Wizard in Enterprise Manager
o Optionally you can manually create the view in Query Analyser
The preferred method is to use the Wizard, since the requirements for the view are very
simple. The description below lists the steps necessary using the Wizard. A sample
script created by the wizard is shown following.
a) Start Enterprise Manager
b) Select the server if necessary
c) Select the database (GD_datagroupname)
d) Using the top menu select Tools>Wizards>Database>Create View Wizard
e) You will be prompted to select a database; and then select the Tables that will be
used in the view. Choose the header table and the desired sub table (Assays,
Lithology etc) for the view
f) Now select the specific columns that are needed. Choose Hole-ID; Length, From, To,
Assay1, Lithology, etc. that are required for the strip log.
g) Define any restrictions using Transact SQL statements E.G. Where (Normally there
wont be any)
h) Name the View for example GDM_Lithview. Select Next and then Finish.
i) Using Enterprise Manager open the GD_xxxx database in the treeview and select the
Views. In the Right window Highlight the view just created and right click to select the
design view

2
May 29, 2017
j) Using the mouse, join the Header table INDEX_PK to the secondary table INDEX_FK
(see diagram)

k) Save the View


l) A separate view must be created for every table that has different From and To
values.
The Wizard will generate a script similar to the following:
SELECT dbo.Venetia_HEADER.[HOLE-ID], dbo.Venetia_HEADER.LENGTH, dbo.Venetia_HEADER.[PIPE],
dbo.Venetia_LITHOLOGY.[FROM], dbo.Venetia_LITHOLOGY.[TO], dbo.Venetia_LITHOLOGY.LITHSTRING,
dbo.Venetia_LITHOLOGY.LITHCODE
FROM dbo.Venetia_HEADER INNER JOIN
dbo.Venetia_LITHOLOGY ON dbo.Venetia_HEADER.Index_PK =
dbo.Venetia_LITHOLOGY.Index_FK

3
May 29, 2017
After Opening Gemcom
1. Open GDM project -Highlight a drillhole workspace and press the right mouse button. A
new menu item will appear Open GDM project. A new tree view item will appear below
the drillhole folder GDM Logs

2. Link Data Source - Right click on the GDM Logs item to bring up a dialogue that will allow
you to define the data source, a palette and a log document that defines what the strip log
will display.

For a MS Access Query - Click on New Data Source the following dialogues will appear. (Note
If you Press F1 whenever a GDM dialog is open you will get context sensitive help for that Item)

Press the connect button to specify the location of the Access mdb file

4
May 29, 2017

Open the mdb file where the query was created.

If the mdb file is protected you must enter the required user name and password here.

5
May 29, 2017
For an MS SQL View there is one additional step. You must create an ODBC data source link
to the SQL database before you can establish a link to the SQL database. See the appendix for
instructions on creating the ODBC link.

Press the connect Button to select the data source. Select GDM_SQL (or whatever name has
been defined for the SQL data source See Appendix)

Press OK

6
May 29, 2017
You will be taken to the next screen. (Note If you Press F1 whenever a GDM dialog is open you
will get context sensitive help for that Item)

The dialogue above provides the mapping that GDM needs in order to create a strip log
diagram. Only the Key field needs to be specified in the GDM collar field column but all fields
that might potentially be used must be specified in the GDM Run fields column. Click on the
record under the => column to include or exclude the external database fields.

The USE column must have the HOLE-ID field defined as Full ID and the To field defined as
To depth Double click on the record in the USE column to get a pick list of available items.

Press OK to accept the warning message about the Coordinate fields from the external
database, only the downhole data is needed to create a strip log. Alternatively if the location
fields from the header table have been included in the query/view the message will not appear.

In order to view data from more than one table in a strip log there must be one data source
created for every interval table to be used. This necessitates that multiple Queries or Views be
defined before you can create a new data source for each query or view.

3. New Palette Creation - A palette is similar to a Gemcom Colour Profile, with the difference
that colours and patterns can be defined for both (rock) codes and variable ranges (assays)
in the same palette. A code or variable can be assigned a pattern, a colour and a scaling
factor.

To make a Palette

o Select New Palette from the right click menu available on the GDM Logs item in the
tree view.

o Select a radio button to choose which option is to be defined.

1. Patterns for a Code


2. Symbols for a Code
3. Line Types for a Code
4. Patterns for a Variable
5. Symbols for a Variable
6. Line Types for a Variable

7
May 29, 2017
o If one of the Code Options was selected - Press the List of Code Values to populate
the Code column from the data source as defined above. An example might be a
Rock Type or Rock Code string field.

Check the Add one Line per Code in the table to get a unique list of Rock codes
as defined in the workspace.

Figure 1
o If one of the variable Options was selected - Press the Variable Ranges button to
populate the ranges for a specific assay type item contained in the data source
defined above.

You can automatically generate a list of ranges by checking the Generate Range box
and filling in the details in the dialogue box. Define the number of ranges are desired
and between which values.

Figure 2
o Assign Pattern and Colour numbers and scale factors for each code or variable by
selecting a blank record under the NUM field and double click to bring up the
pattern selection dialogue as shown below. In a similar manner select a record
under the CLOR column and double click to bring up the colour selection dialogue.

8
May 29, 2017

Figure 3
4. New Log Document - Press New Log Document from the right click menu available on the
GDM Logs item in the tree view

Press the Add button to select which fields will be displayed in the log document if there is more
than one data source you can add and display multiple columns from other Drillhole sub tables.
In the example below the first two columns come from one data source and the other come from
another. As shown in the two examples below the Log Format dialogue

9
May 29, 2017

5. Print/Plot Log Document - To display the Strip Log- right click on the desired log document
in the Log Document folder and press Display. Pick a drillhole from the list of drillhole
names and press OK.

10
May 29, 2017
Appendix A ODBC data source (Usually a Data Base Administrator Task)

This list has been compiled using Windows XP; there may be minor differences depending on
operating system.

Go to Control Panel>Administrative Tools>Data Sources (ODBC)


Select the DSN tab Press Add this will start a wizard that will help you through the process.
Select the SQL Server driver
Define a name for the data source. EG GDM_SQL as shown above
Describe what the data source will be used for.
Assign the SQL server where the Gemcom database is stored. Press NEXT

Verification normally choose NT authentication


Check the Connect to SQL Server for default settings. Press NEXT

Assign the default Database


Press NEXT
Press Finish.

11

Você também pode gostar