Happy #MapInfoMonday
In this week's post, I will present you with another improvement in MapInfo Pro v2023 that will help you access data from Internet sources. Well, it can be various types of sources and in various formats.
This feature is based on the work with OGR Vector Data that we did for MapInfo Pro v2021.
Many organizations share data via publicly accessible web services these days. Some of these organizations use services that already are spatial, such as OGC WMS, OGC WFS, and similar. You have for a long time been able to connect to these from MapInfo Pro.
Others share their data through more basic web services. Well, now you can connect to these and benefit from that data with MapInfo Pro v2023.
In my example, I will connect to a web service provided by the USGS, U.S. Geological Survey, of earthquakes around the World. This web service allows you to retrieve earthquakes and filter them by time and magnitude. The web service returns the result in GeoJSON that can be opened and mapped directly in MapInfo Pro. A resulting map from this data could look like this.
Now let's see how we got to this point.
The first thing you need is to have a URL that points to the data you need or want to use. For the earthquakes, it's this URL:
https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2023-01-01&endtime=2023-05-31&minmagnitude=2
With the URL ready, click on Open Table in MapInfo Pro, and in the Open dialog, click on the Open Connection button at the top right corner of the dialog.
In the Open Connection dialog select OGR from the Connection Type list and hit OK.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------