Subsurface Syntax

Subsurface Syntax

How to Display Data From GeoJSON Files Using the Folium Python Library

Creating Interactive Maps of UKCS Oil and Gas Field Outlines

Andy McDonald's avatar
Andy McDonald
Feb 24, 2023
∙ Paid

Creating Interactive Maps of UKCS Oil and Gas Field Outlines

Photo by Aksonsat Uanthoeng, downloaded from Pexels.

Folium is an excellent python library that makes it easy to visualise geospatial data on interactive maps using the power of Leaflet.js. In my previous article, I covered how to display individual markers on a folium map, but we can use folium also display data that has been stored within a GeoJSON file.

GeoJSON is a commonly used file format for storing geospatial data and uses JavaScript Object Notation. These files can store location data, shapes, points, surfaces, etc.

Within this article, we will see how to display polygons of UK North Sea oil and gas fields that have been stored within a GeoJSON file format.

The data for this article is sourced from data.gov.uk and is licenced under the Open Government Licence. The data can be viewed and downloaded from the following website.

OGA Offshore Fields WGS84
We use cookies to collect information about how you use data.gov.uk. We u…

Keep reading with a 7-day free trial

Subscribe to Subsurface Syntax to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2026 Andy McDonald · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture