Log InRegister
Quick Links : The Mindat ManualThe Rock H. Currier Digital LibraryMindat Newsletter [Free Download]
Home PageAbout MindatThe Mindat ManualHistory of MindatCopyright StatusWho We AreContact UsAdvertise on Mindat
Donate to MindatCorporate SponsorshipSponsor a PageSponsored PagesMindat AdvertisersAdvertise on Mindat
Learning CenterWhat is a mineral?The most common minerals on earthInformation for EducatorsMindat ArticlesThe ElementsThe Rock H. Currier Digital LibraryGeologic Time
Minerals by PropertiesMinerals by ChemistryAdvanced Locality SearchRandom MineralRandom LocalitySearch by minIDLocalities Near MeSearch ArticlesSearch GlossaryMore Search Options
Search For:
Mineral Name:
Locality Name:
Keyword(s):
 
The Mindat ManualAdd a New PhotoRate PhotosLocality Edit ReportCoordinate Completion ReportAdd Glossary Item
Mining CompaniesStatisticsUsersMineral MuseumsClubs & OrganizationsMineral Shows & EventsThe Mindat DirectoryDevice SettingsThe Mineral Quiz
Photo SearchPhoto GalleriesSearch by ColorNew Photos TodayNew Photos YesterdayMembers' Photo GalleriesPast Photo of the Day GalleryPhotography

HOWTO - Create a non-hierarchical locality from a map in a reference.

Last Updated: 19th Jan 2020

By Jolyon Ralph

Non-hierarchical localities are perfect for regions that don't exactly coincide with political boundaries. So, this works great for mining districts, intrusive massifs, pegmatite fields etc which can span a great area.


Often these have been added in incorrectly to the locality hierarchy (before we had the system to deal with them as we do now) and they need cleaning up. Let's take an example

04941980015320320358548.jpg


Why is this so bad? Let's look at the sub-localities.

03684790015320320918548.jpg


Maués is a political division (a municipality) which should be immediately below the state (Amazonas), but instead we have this mineral province in-between.

What happens when we have localities within Maués that are not part of this mineral province? Another Maués entry needs to be added outside the mineral province and the sub-localities are split.

None of this is good. Which is why we have a rule that you never put geographical/geological/mining regions at a higher level in the hierarchy than political divisions.

So, to solve this we need to move Tapajós mineral province to a non-hierarchical locality, and move all of the current sub-localities back to being sub-localities of Amazonas.

There are two tasks needed to do this. First we have to do the re-arranging, this is simple. Then we have to define the area of the Tapajós mineral province as a GeoJSON file. This is harder!


So, let's move the localities in one block without needing to move each of the sub-localities individually.

On the locality page under 'Admin' you should find an option 'Convert to Non-Hierarchical'. Use this option.

Now, we need to add a polygon boundary to catch all the other sub localities that weren't previously listed. This is the more complex part!

First, you need to find a map showing the boundaries of the region. It also must have a coordinate grid visible. Searching Google for the name of the province, and switching to image search often does the trick.

You are looking for a map that shows the clear boundaries of the region, it can be irregular it doesn't have to be a rectangle, but in this case it is.

We found this

06321280016025226117571.jpg


It's from this article:

https://www.sciencedirect.com/science/article/pii/S089598111530095X

Don't worry if you don't have access to the full article, because in this case and in many cases the image within the Google Images preview is good enough.

Save the Google Images image to your computer.

08598320016025226118554.jpg


Now, we need some clever software. If you have ArcGIS then you can do it with that, but most people can't afford this, so we're going to use the free QGIS software. It's complicated to set up but you only have to do this once.

https://qgis.org/en/site/

Download the software and install it. You may need to install Python first, make sure to check which version of Python the QGIS installer asks for, currently it asks for v3.6, so I have installed version 3.6.6 - version 3.7 doesn't work!

So assuming this all went well, you can load QGIS and you'll get a screen something like this:

00136080016025226129647.jpg


Now you need to go to the Plugins/Manage and Install Plugins menu.

01203110016025226124263.jpg


At the moment there seems to be a bug which means that you can't activate the correct extension without following this exact procedure.

On the left click 'INSTALLED'

In the search box type georef

Make sure the checkbox next to Georeferencer GDAL is checked, and close.

If you did this right you should see a new option for Georeferencer in the Raster Menu. We can start the procedure for converting your map. select the Georeferencer option and a new window should open.

02562710016025226126236.jpg


Now, go to File/Open Raster, and select the map image you saved previously.

You may get a Coordinate Reference System Selector box pop up. Make sure the WGS 84 option (EPSG:4326) is selected.

03413060016025226126569.jpg


Now your map should be loaded.

04241360016025226129938.jpg


Now, we need to align the image with some geographical points. We will add four points of latitude/longitude within the map to allow the software to understand exactly where in the world this map represents.

Click on the point where the 50 W and 4 N lines intersect. You may prefer to zoom in to do this.

05787050016025226125943.jpg


You'll be asked to enter the latitude and longitude of the point. We enter -50 for East, and 4 for North.

02366580015325325245150.jpg


Now, do the same thing for at least three more points ideally one in each corner of the map.

07211010016025226124211.jpg


Now, go to Settings/Transformation Settings and make sure the three top settings are as shown below, and you need to select an output raster (filename to save the file). Check the 'Load in QGIS when done' box.

08935050015325325231048.jpg


Click OK and you're ready to convert. Now go to the File menu and choose 'Start Georeferencing'.

Your map should now be loaded into the main QGIS application.

08603620016025226122523.jpg


Now we start tracing. Go to the Layer Menu, select Create Layer, and then New Temporary Scratch Layer

You want to make sure the options are selected as below:

03969030015325325239045.jpg


Now, look at the toolbar, make sure the yellow pencil icon is activated (clicked in), and then click the 'Add Polygon Feature' icon (see below)

07589350015320367603459.jpg


Now, click on a start point in the region we want to define, and click points around the region until you are close to the end, then click the right mouse button to join all together.

You should see the region covered with a solid block of colour, as below. Remember, this example is a simple rectangle, but it can be irregular shapes, and can even be multiple areas with different polygons, or polygons with holes in them (although that's a bit more complex and I'd suggest reading up more about QGIS for doing that.)

00851140016025226137843.jpg


Now, click the right mouse button on 'New scratch layer' in the Layers panel, and select Export/Save Features As...

Make sure format is set to GeoJSON and select a destination filename. Again, make sure WGS84 is selected.

02288030016025226136430.jpg


Export this and you're finished with QGIS.

Now, go back to mindat and find the locality page. Edit the locality, go down to the 'Geospatial Information' area, and check the 'This is a non-hierarchical locality' box.

Click 'Upload a file' and select the file you just saved from QGIS. You should then see the data load like this:

02839800016025226132135.jpg


Now, save the locality edits and you're finished.... almost!

Return to the locality page and hey - we have a working non-hierarchical locality.

03497590016025226136664.jpg


Almost perfect, except let's just check the Localities in this Region section.

04299230016025226134899.jpg


Can you see the problem? This province extends beyond the Amazonas state into Pará state, and we have another Tapajós mineral province page for the Pará state.

So, we need to edit this page again and take Amazonas out of the hierarchy, this province can only sit at the higher level immediately under Brazil.

05048890016025226133787.jpg


Save the change. Now search mindat for Tapajós, find the OTHER mineral province page, and edit that to move the sub-localities out to the parent region in exactly the same way you did before. But this time, when you do the step where you DON'T FORGET to uncheck the 'Fix all child localities' box, you can remove the region name as well. Also make sure at this point that the page is also set as a non-hierarchical locality. You don't need to upload the GeoJSON file again.

Now you have two pages with exactly the same title, which will at some point be merged together by our admin team, but for now you don't need to worry about that. Just view the page and you should now see everything is right!

Now, after cleaning everything up, we have the mineral province correct and the localities all in their correct political regions. Well done!

05559770016025226135394.jpg



ps. If you're feeling brave and you still have QGIS loaded, note that there are OTHER mineral provinces on the map, you can go back and use the map you've already georeferenced and draw more polygons over those regions, and save those out as individual GeoJSON files too. Either update existing mindat localities as we did above or create new ones if they aren't already in the system.




Article has been viewed at least 1881 times.

Discuss this Article

25th Jan 2019 20:40 UTCClosed Account 🌟

Thank you for this information!

Any chance, that https://www.mindat.org/photo-906623.html is converted into regions?

Cheers,

Branko

8th Jan 2022 15:08 UTCProdromos Nikolaidis Expert

Excellent article and this must be the way to create spatial boundaries in mindat!

However, GIS software like ArcGIS or QGIS might be a bit tricky, intimidating and frustrating for the newcomer.

In this sense, I've put together an article about how to do the (more or less) same job but with the use of Google Earth which I assume more people are familiar with:

Note: this is not the ideal way to do so as it can lead to not the most accurate results but I hope that it will serve as a good work-around for people that for various reasons do not wish to get involved with the, sometimes complicated, world of GIS systems and just want to simply contribute an area of interest to mindat.

8th Jan 2022 16:14 UTCDavid Von Bargen Manager

If you use the standard MSI files to download and install QGIS, you shouldn't need to load the python programs. I am pretty sure that QGIS uses a virtual environment for python, so you don't have to upgrade or delete previous versions of python.

If you are doing multiple regions, you may not want to put it in a scratch layer as you can use modules to create adjacent regions that do not overlap boundaries, but use the boundaries that you already have.
 
and/or  
Mindat Discussions Facebook Logo Instagram Logo Discord Logo
Mindat.org is an outreach project of the Hudson Institute of Mineralogy, a 501(c)(3) not-for-profit organization.
Copyright © mindat.org and the Hudson Institute of Mineralogy 1993-2024, except where stated. Most political location boundaries are © OpenStreetMap contributors. Mindat.org relies on the contributions of thousands of members and supporters. Founded in 2000 by Jolyon Ralph.
Privacy Policy - Terms & Conditions - Contact Us / DMCA issues - Report a bug/vulnerability Current server date and time: May 9, 2024 20:29:39
Go to top of page