We have in a previous article looked at the OGR Vector Files support that we added to MapInfo Pro v2021. Today, we will look at opening GeoJSON files.
If you need to export your data to GeoJSON, we have previously discussed doing this via a Python script and the Export via OGR Vector Files.
Opening a GeoJSON File
In this example, I want to download some earthquake data from the USGS (U.S. Geological Survey) and open this in MapInfo Pro.
Under the Earthquake Hazards Program, I can access the GeoJSON Summary Format page. Here I can find links to earthquake summaries for the past hour, past day, past week, and past month.
I'll right-click the summary for the M1.0+ Earthquakes under Past 30 days, and save this to my laptop. It will be saved as a GeoJSON file.
In MapInfo Pro, I select the Open Table control from the Home tab. In the Open dialog I select Vector Files (OGR) from the Files of Type list and browse to the location where I saved the GeoJSON file that I downloaded.
Now double-click on the GeoJSON file to open it.
Click the OK button to load the data into MapInfo Pro. Below you can see the resulting dataset on a map.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------