Make static maps digital in a few hours with Machine Learning

NGIS Australia
Apr 8 · 3 min read

Some time ago, I was working on a project that required a map to get some geospatial information on the Lithology (the study of rocks) of the Island of San Miguel in Azores, Portugal. When I asked for the data, to my surprise, I was sent a photocopy of the original geological map in a JPG format.

This email attachment shattered my digital age expectations. I was expecting to open a digital geological map, I hadn’t even considered a photocopied one.

Looking at the JPG file took me back to my 20s, when I was a University student exploring the new world of geospatial analysis and the long process of digitising traditional cartographic maps. I was stressed seeing this JPG file for two reasons:

  • The image was not geo-localised
  • It was not a digital categorical map, thus it couldn’t provide useful information (yet)

The manual process to digitise a traditional cartographic map is time-consuming and labour intensive. However, I found a faster and more efficient approach.

To get the project underway, I began by georeferencing the map image using Esri’s ArcGIS in conjunction with classic GIS techniques to provide geospatial context within the image.

Then it was time to begin the manual process of digitising the map. After spending the better part of an hour drawing polygons around the 21 different lithological classes indicated in the original map, I had a ‘Eureka’ moment — I could use Machine Learning (ML) algorithms to classify those boundaries.

Using my experience in building ML algorithms to classify images using Google Earth Engine, I was confident those algorithms were solid enough to produce some useful and reliable results for my map boundaries. Here was my output:

Once I had located and mapped the 21 training areas around the island, I sampled those with the RGB bands from the original image — obviously using digital number values rather than reflectances. The sampled training data was used to train the algorithm with a total of 100 decision trees.

The output of the classification showed a good performance of the methodology applied. A job that manually would have taken a couple of weeks to complete, was complete in about three hours.

Although the results of the newly classified map was 21 classes representing different geological characteristics, I noticed there was also noise produced by single or lonely pixels. To remove this noise, I applied morphological operators which considerably improved the results. See the before and after below.

Remember, next time you’re asked to digitise a traditional cartographic map, ML can save a lot of pain. Want to have a chat? Reach out to our EO Data Science team.

Geospatial technology can help turn your ideas into world-changing outcomes

NGIS Australia

At NGIS, we are passionate about the power of geospatial technology — from something as humble as a customised Google Map, to an advanced Earth Observations project that has the ability to enact positive change at a global scale.

NGIS Australia

Written by

NGIS is a GIS consultancy that is passionate about the power of geospatial technology.

NGIS Australia

At NGIS, we are passionate about the power of geospatial technology — from something as humble as a customised Google Map, to an advanced Earth Observations project that has the ability to enact positive change at a global scale.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store