Skip to content

National Mineral Deposit Database — Download and Application ​

What this dataset is ​

This page presents the National Mineral Deposit Database: it brings together the results of mineral resource exploration work by China's former Ministry of Geology and Mineral Resources system since the founding of the People's Republic of China. It is one of the important projects of the "Digital Land" project of the new round of land and resources survey, and a foundational database in geological survey informatisation. The Development Research Center of the China Geological Survey has built it into the "National Mineral Geology Big Data 2021" system, in which the national mineral deposit data can be browsed online, filtered by mineral deposit name, mineral type, administrative division or metallogenic belt, and drawn into thematic mineral maps.

The focus of this page is "how to use it after downloading": the database is in Access .accdb format, which ArcGIS cannot open directly. The main text demonstrates step by step how to convert it to Excel, split and convert the longitude/latitude recorded in degrees-minutes-seconds form, distinguish mineral point records from mineral area records, and finally generate mineral point features and mineral area features in ArcGIS.

Coverage and time range ​

  • Coverage: 29 provinces across the country (according to the data introduction on the original page)
  • Time range: it brings together mineral resource exploration results since the founding of the People's Republic of China; the specific start and end years are not stated on the original page

Resolution and specifications ​

  • Data format: .accdb (a Microsoft Access storage format)
  • Number of records: 27,569 (consistent with the metadata description)
  • Number of fields: 14 fields in total; coordinates are recorded in degrees-minutes-seconds form in the longitude/latitude fields

What you can use it for ​

  • Basic information for mineral resource survey and evaluation, scientific research and teaching, mining development and planning management (according to the official introduction)
  • Making national thematic mineral maps by mineral type, administrative division or metallogenic belt
  • Organising mineral points and mineral areas into your own GIS feature data, and making customised mineral deposit data products

Today's article introduces an important database

The National Mineral Deposit Database

Taking this database as an example, this article

introduces how to apply data downloaded from the internet

how to think, how to analyse, how to use

Below is the formal article

Outline of the download and application of the National Mineral Deposit Database

1. Data introduction ​

The National Mineral Deposit Database is one of the important projects of the "Digital Land" project

of the new round of land and resources survey,

and a foundational database in geological survey informatisation work.

The database covers 29 provinces across the country (figure below)

National Mineral Deposit Database 2021 edition

Its working scope covers the whole country,

and it fairly comprehensively reflects the results of mineral resource exploration work

of China's former Ministry of Geology and Mineral Resources system since the founding of the People's Republic of China.

The National Mineral Deposit Database has quality monitoring throughout the whole process;

during the national compilation, a comprehensive review and error correction was also carried out.

It has basically achieved complete data collection and accurate content,

complete and accurate data entry, and its data structure

and data precision all comply with the relevant technical standards; the overall quality is reliable.

The National Mineral Deposit Database is a large database with a complete range of mineral types, a wide coverage,

rich content, a large data volume and a long time span,

providing very important basic information for mineral resource survey and evaluation, scientific research and teaching, mining development

and planning management.

The above is the complete official introduction.

The Development Research Center of the China Geological Survey has built it into

the "National Mineral Geology Big Data 2021" system.

We can browse the national mineral deposit data through the internet.

The method of using the website is introduced below.

The system provides some convenient tools,

such as: the layer list display.

Users can make national thematic maps of various minerals (Figure 1).

At the same time, the website provides various legend symbols (Figure 2).

Users can, as needed,

filter by entering a mineral deposit name or mineral type,

or by administrative division or metallogenic belt (Figure 3),

or draw an extent themselves to select locations (Figure 4),

and thereby customise thematic mineral maps.

National thematic maps of various minerals1649582454513.png
1 Layer list display2 Legend symbol display
1649582482344.png1649582499728.png
3 Administrative division display4 Custom filtering

2. Download method ​

In the Geological Science Data Publishing System,

all data is free (National Geological Archives of China).

Register an account on the official website to download.

Open the Geological Science Data Publishing System website:

there are geological map spatial databases at various national scales,

and in addition, reports, geological maps, borehole and other data can be downloaded.

This website has also been continuously publishing services;

in other words, it is dynamically updated.

Log in often and have a look, and you can always find good things,

such as the newly released National Mineral Deposit Database this year (Figure 2)

and the National 1:200,000 Hydrogeological Map Spatial Database —

both are particularly practical and valuable resources.

1649582537131.png1649582553703.png
1 Dynamic updates2 National Mineral Deposit Database

Official website download: http://dcc.ngac.org.cn/cn//geologicalData/details/doi/10.23650/data.C.2018.NGA120770.K1.1.1.V1

Step 1: Copy the URL above

Step 2: Log in to the National Geological Archives of China (Figure 1)

Step 3: Select the National Mineral Deposit Database (Figure 2)

At the end of his article there is a download link (Figure 3)

Click to download it locally (Figure 4)

1649582573769.png1649582596673.png
1 Log in to the National Geological Archives of China2 Select the National Mineral Deposit Database
1649582619435.png1649582643452.png
3 Download the database4 Download locally

The download terms that need to be explained:

  1. This data is only for the downloader's own study and research use.

  2. When using this data, users should respect the labour results of the data authors, and must clearly indicate in the corresponding research results using this data that this data was cited.

  3. Authors who extract part of the records in the data to create new data need to follow the 10% citation principle, i.e. the data records extracted from this data are less than 10% of the total records of the new dataset, and the extracted data records must be labelled with the data source.

  4. This website does not bear any form of loss or harm that users may cause to themselves and others from using this data.

  5. Scraping the data is prohibited. This website limits each account to downloading 5 data items per day; currently 0 have been downloaded.

  6. Please fill in real information. Filling in incorrect information will face the risk of the download function being cancelled or the account being banned.

3. Data use ​

(1) Analysis approach ​

(1) Look at what format the database is. Generally, the metadata has an introduction.

(2) Whether ArcGIS can open it. If it cannot open it, search online for the format and think of a way.

(3) View the information in the database records. After opening it, view the fields and record contents.

Proceed following this approach below.

(1) Look at what format the database is ​

When we use data, we must know its source,

that is, the "metadata", the attributes of the data.

Below is the official database (collection) metadata summary table

Official database (collection) metadata summary table

(2) Whether ArcGIS can open it ​

National Mineral Deposit Database.accdb

The suffix is .accdb, which is not very common.

If you don't understand, search online (Figure 1).

It turns out to be a storage format used by Microsoft Access software.

Good — ArcGIS supports Access personal file databases.

We try opening the accdb with ArcGIS,

and find that ArcGIS cannot retrieve the accdb.

Then we save it as another format, .mdb (Figure 2)

1649582692679.png1649582714661.png
1 Baidu search2 Whether ArcGIS supports it

The mdb format is supported by ArcGIS,

a personal geodatabase format.

Open it with ArcMap.

First see whether there are feature classes (geospatial entities).

After opening it, we find there are only attribute tables (structured attribute tables), as shown below

1649583069253.png1649583107350.png
Attribute table contentTable properties

(3) View the information in the database records ​

Having the metadata introduction is not enough.

If you want to use the database,

you also need to understand each field.

Open the database and find that all the fields are codes (unintelligible).

Then look for whether there is a field description.

You can view it in the field design (Figure 1),

or view it in the names and captions (Figure 2)

1649583141495.png1649583160454.png
1 Field design2 Captions and names

After trying various methods, there really is none.

With no description at all,

we can only infer the fields from the attribute values

1649583183830.png

First, the database has 27,569 records,

which matches the metadata description.

Carefully analyse the database fields:

the first category, KCAAA, is a numeric code, currently unintelligible;

KCC should be the mineral type, JJDAJ is a place name,

JJGLA the traffic location, and the next two should be the geographic longitude and latitude;

the KCBA mineral deposit genesis field, and the next two are unclear;

PKGKB may be the mineral deposit scale;

KCAOC is era information, presumably the metallogenic era;

the last two fields, one is survey, and the other should be utilisation status.

There are 14 fields in total.

With these fields, many analyses and studies can be done.

For example, the National Geological Archives of China used the location information in it

to build the "National Mineral Deposit Database 2021 edition" system.

(2) Data organisation ​

This data is in accdb format.

After preliminary analysis, ArcGIS cannot use it directly.

We can convert it into a personal geodatabase (mdb) that ArcGIS can recognise,

or export it to Excel and use ArcGIS's Add XY Data.

The operation is demonstrated below.

(1) Format conversion ​

Converting an Access database to Excel

Note that it must be converted to .xlsx format (Figure 1).

.xls is the data format of Excel 2003 and earlier,

which can store at most 65,536 rows of records,

and it is a proprietary binary format.

xlsx can store up to 1,048,576 rows,

and uses an XML-based compression method,

making it take up less space and making data analysis faster.

Next, analyse the spatial data characteristics.

Obviously, the two fields DWAAC and DWAAD are longitude and latitude.

Next we analyse the coordinate characteristics,

and find that the location information stores two types of data:

one type records the XY values of longitude/latitude points,

and the other type records longitude/latitude ranges.

In plain terms, the first type is mineral points (points),

and the second type is mineral areas (regions) (Figure 2)

1649583204802.png1649583224451.png
1 Export to Excel2 Location information characteristics

(2) Making mineral point features ​

Filter in Excel, in three steps.

Step 1: Text to columns (Figure 1) ​

Insert a blank column before splitting

(directly splitting would overwrite the data behind)

Split using "-" (Figure 2)

(of course, you can also use Ctrl+E flash fill)

See the screenshots below for the detailed operation

1649583253046.png1649583285639.png
1 Insert a blank column2 Text to columns

Do the same to split the latitude.

Step 2: Filtering ​

The method of filtering mineral points:

click the filter tool,

select the split maximum longitude column,

and filtering for blank values gives the mineral point data (Figure 1).

But it turns out the maximum latitude also has data,

which by rights should not be the case

(the reason: the source data did not properly record the mineral areas,

or possibly that mineral area is a triangle,

but the probability of a triangular mineral area is almost zero),

so we uniformly treat them as mineral point data.

Under the premise of filtering the maximum longitude,

delete the maximum latitude values (Figure 2)

1649583312708.png1649583349909.png
1 Filter blank values2 Delete the maximum latitude

A method for batch-selecting data in Excel:

hold down Ctrl and Shift at the same time, without letting go,

and select the up/down/left/right arrow keys (provided the data is continuous)

1649583332107.png

Batch-copy the filtered data,

create a new worksheet and name it mineral points (Figure 1),

preferably pasting as values (Figure 2)

1649583386001.png1649583408091.png
1 New worksheet2 Paste as values
Step 3: Unifying the number of longitude digits ​

The coordinate information provided by this database is judged to be in degrees, minutes and seconds

(why: because the third and fourth digits never exceed 60).

We need to batch-extract the degrees, minutes and seconds,

but on careful inspection, some longitudes have only 6 digits.

This is also normal:

in the areas of China west of Qinghai and Sichuan, the longitude does not reach 100 degrees (Figure 1).

Now there are both 6-digit and 7-digit values, which is not good for batch operations,

so we have to pad the 6-digit ones with a leading zero and uniformly treat them as 7 digits.

Processing data with Excel is particularly interesting;

you can think of many methods.

Method 1: use the LEN function to calculate the longitude length (Figure 2)

1649583441839.png1649583463173.png
1 China's longitude characteristics2 The LEN function

Use a nested IF function:

if the character length = 6, pad with a zero;

otherwise the cell value stays unchanged:

=IF(LEN(D8)=6,"0"&D8,D8) (Figure 1)

Method 2: set the cell format to "0000000" (Figure 2),

then copy that column into a txt file,

set the cells to text format, and paste it back

1649583487881.png1649583532069.png
1 Nested formula2 Setting the cell format
Step 4: Converting degrees-minutes-seconds to decimal degrees ​

Everyone knows the degrees-minutes-seconds conversion:

1° = 1′*60 = 1″6060

Use three commonly used character extraction functions,

LEFT, MID, RIGHT, briefly introduced below.

The LEFT function takes several characters from the left.

Taking longitude as an example, we take the first three digits: LEFT(E2,3)

The MID function takes characters starting from a certain character in the middle, taking several of them.

Taking longitude as an example, we start from the 4th character

and take two digits: MID(E2,4,2)

The RIGHT function takes several characters from the right.

Taking longitude as an example, we take the last two digits: RIGHT(E2,2)

Then double-click the cell fill handle:

=LEFT(E2,3)+(MID(E2,4,2)+RIGHT(E2,2)/60)/60 (Figure 1)

Do the same for latitude:

=LEFT(G2,2)+(MID(G2,3,2)+RIGHT(G2,2)/60)/60 (Figure 2)

At this point our mineral point information processing is complete

1649583585762.png1649583606794.png
1 Longitude processing formula2 Latitude processing formula
Step 5: Adding XY coordinates in ArcGIS ​

Drag the worksheet into ArcMap.

Under the File menu, select Add Data – Add XY Data.

Select the decimal longitude for the X field,

and the decimal latitude for the Y field (Figure 1).

For the coordinate system, select Edit, and choose WGS84 or China Geodetic Coordinate System 2000.

Step 6: Exporting the solid feature class in ArcGIS

Export the data (Figure 2)

1649583644028.png1649583663081.png
1 Add XY coordinates2 Export features

(3) Making mineral area features ​

The processing of mineral areas troubled me for a long time;

I thought of many methods,

such as the XY To Line tool, or building a model, etc.

Three methods are introduced below, with the focus on method 3.

Method 1: Use the XY To Line tool

The parameters are shown in Figure 1;

the effect made by points to XY (Figure 2).

At the time I only considered its start-point and end-point coordinates,

and the result was only the diagonal of the mineral area, which is obviously wrong

1649583682960.png1649583701567.png
1 XY To Line tool2 The resulting effect

While writing this article,

an idea suddenly struck me, changing the approach:

the start-point and end-point parameters in the tool are relative concepts;

if we do four operations,

generating the four boundary lines of the mineral area separately is also feasible,

except that what is finally generated is broken lines.

Method 2: Model batch processing

The key point of making a model for batch processing is that

one mineral area must be split into four rows of records for processing,

that is, three rows need to be inserted under each existing row (Figure 1),

and then the Points To Line tool is used.

I found a model tool online (points to polygons)

that can also achieve it

1649583725597.png1649583749363.png
1 Key model processing2 Points-to-polygon model

Method 3: Generating lines from the four points of a mineral area

This example focuses on this method.

The mineral area is made into 4 point coordinates following the mineral point method.

Step 1: Filter for the maximum longitude,

and filter for the maximum latitude at the same time (Figure 1);

then select all the data

and paste it into a new worksheet named mineral areas (Figure 2)

1649583773531.png1649583798354.png
1 Filter the maximum longitude2 Paste into mineral areas

Both the maximum and minimum longitudes have the 6/7-digit problem;

the handling method is the same as for mineral points (this problem is best dealt with at the very beginning).

Next, the longitude and latitude need to be converted to decimal degrees,

using the same method, generating four columns (Figure 1):

minimum longitude, maximum longitude, minimum latitude, maximum latitude.

Add XY coordinates in turn,

generating the mineral area events separately (Figure 2)

1649583823606.png1649583844845.png
1 Converting degrees-minutes-seconds to decimal degrees2 Add XY coordinates

Finally export the coordinate features of the mineral area's 4 points (Figure 1),

materialising the coordinates;

the effect in groups of four is as follows (Figure 2)

1649583859107.png1649583875748.png
1 Export the four coordinate points2 Effect

There is one more crucial step:

giving each of the 4 points a sequence number column separately.

I also thought for a long time about the method of generating sequence numbers;

searching online, basically all use Python.

I worked out a method that does not use programming,

using only ArcGIS's own tools.

Method:

open the attribute table – add a field (Figure 1);

field name – sequence number – short integer (Figure 2);

then in the sequence number – field calculator (Figure 3),

double-click OBJECTID, making the sequence number = each row's unique ID (Figure 4)

1649583899459.png1649583916794.png
1 Add a field2 Field settings
1649583934469.png1649583957797.png
3 Field calculator4 Make the sequence number = OBJECTID

See the animated image below for the detailed operation

1649583977937.png图片

Why generate a sequence number column?

It will be explained later; it is an important parameter.

We create lines for each mineral area according to this parameter.

Then use the merge tool

to merge the mineral area's four points into one layer.

There is also a note for merging:

when adding the 4 points, you must pay attention to the order;

clockwise or counterclockwise are both fine,

but you cannot first select the minimum longitude/latitude and then the maximum longitude/latitude,

otherwise the mineral area line will be either an hourglass shape or a Z shape.

See the figure below for the detailed operation

1649583997457.png

After merging is complete,

use the Points To Line tool

to connect the four points in order.

There is an important parameter,

which is the sequence number mentioned above;

it must be checked (Figure 1).

The effect after Points To Line is complete (Figure 2)

1649584054966.png1649584073446.png
1 Points To Line2 Mineral area synthesis

Open the mineral area line attribute table: there are no mineral area attributes (Figure 1).

Next we need to give the lines attributes.

Method: use a spatial join.

Spatial join parameter selection (Figure 2)

1649584097853.png1649584136389.png
1 Mineral area line attribute table2 Spatial join

See the animated image below for the detailed spatial join operation

1649584154147.png

The above operation generates lines.

Next, think: how to generate polygons from lines?

For generating polygons from lines, everyone's first reaction is to use the Feature To Polygon tool,

but in actual operation,

after running the conversion to polygons, all the polygon files were broken apart (Figure 1),

and the attributes were also lost (Figure 2)

1649584174824.png1649584192207.png
1 Polygons broken apart2 Attributes lost

So the simple Feature To Polygon tool cannot achieve our requirement.

I searched online for many functions and did not find a solution.

Today I thought about it again and successfully solved this problem.

This article will not post the processing method for now.

Engels said, "Thinking is the most beautiful flower on earth."

I suggest everyone think about it too;

perhaps your method is better.

You can leave your thoughts in the comment area.

Reply "线转面" (lines to polygons) in the WeChat public account dialog

to obtain my production approach

1649584217805.png

At this point, both mineral points and mineral areas are done,

and the national mineral deposit data product is preliminarily complete.

If you want to make it into a system, like the National Archives',

you also need to make map symbol expressions according to the standards and specifications —

in other words, how to represent things like iron mines with symbols.

After defining the symbol expressions yourself, you can output images,

or customise it into your own database product,

to be studied and applied further as basic data collected for projects, and so on.

Finally, a summary:

in your spare time, browse the internet and tinker with data more;

it can both increase your own knowledge

and improve your software operation skills,

and you can customise your own data products along the way.

Also, especially when multiple software programs operate together,

to achieve your own purpose,

you need to think of multiple ways to solve problems.

Creative thinking is wonderful, and gives a sense of achievement;

it is also a way to improve your own innovative ability.

Note: This resource comes from the National Geological Archives of China. To respect intellectual property rights, this article does not provide the resource for download; the case operations are for study only.

License and citation ​

Download terms stated on the original page: the data is only for the downloader's own study and research use; when using the data, clearly indicate in the corresponding research results that the data was cited; extracting part of the records to create new data must follow the 10% citation principle and label the data source. Source: National Geological Archives of China (this article does not provide the resource for download).

Author ​

1649581876841.png