You are on page 1of 13

MineSight ModelLink

ODBC Driver for MineSight Block Models


MineSight ModelLink
Description

ModelLink Theory

Technical Details

Mining Applications
What Is ModelLink?
MineSight ModelLink
• ODBC Driver (Windows DLL)
• Provides read-only access to PCF/Model

Open Database Connectivity (ODBC)


• Programming Interface
• Structured Query Language (SQL)
ModelLink Theory:
Relational Database Analogy

Database Tables Fields

Project Control Model Items +


Model Files
File (PCF) Block Offsets

Primary Key
Block Offsets (Level + Row + Col)
Using ModelLink

Create
Create ODBC Execute SQL Result Set
Linked
Data Source Query Returned
Server

SELECT * FROM msop15.dat WHERE LEVEL=50


ODBC Applications

Microsoft Excel

Microsoft Access

Microsoft SQL Server

SAP Crystal Reports

Oracle Database
Stored Procedures:
Accessing PCF Metadata

GetModelNames

GetModelExtents

GetModelItems

GetBlockSize

GetNumBlocks
Mining Applications

❶ Update block model changes to a


centralized Electronic Data Warehouse

❷ Monthly Reporting
Mining Applications

❸ Ad-hoc queries:

Q. How much material of code 99 is left on Bench 2950?

SELECT SUM(TONS) FROM test15.dat WHERE


LEVEL=50 AND DOMA=99
Mining Applications

❸ Ad-hoc queries:

Q. What is the average copper grade of a set of blocks?

SELECT AVG(CU) FROM test15.dat WHERE LEVEL=50


AND ROW=128 AND COLUMN BETWEEN 100 AND 110
Mining Applications

❸ Ad-hoc queries:

Q. What is the total $ value of a set of blocks?

SELECT SUM(VALPT * SG * 1000) FROM test15.dat


WHERE LEVEL=50 AND ROW=128 AND COLUMN BETWEEN
100 AND 110
Conclusion

SQL: Convenient, Powerful, Portable

Streamlined Extraction Process

Ideal for corporate-level solutions (Business Intelligence)


The End.

You might also like