Opening files from a simple using web request.

Home » Geospatial Software » The Python Ecosystem of Geospatial Libraries » Accessing data in Python » Opening files from a simple using web request.

The basic approach is here that you have a URL (Web address) that points to the location of some geospatial data file. Always be careful when opening data from the internet, although I have not yet heard about any weaknesses in Python being exploited. The most common files that can be opened directly from a web store are GeoJSON and KML for vector data and TIFF files for raster data. For an overview of geospatial file types, see the Table of common geospatial data formats.

In this example, I will use the library requests to handed the data loading and the mapping library Folium

You can access the notebook on GitHub here and from there run it in Colab