Skip to content

InformationSystemsFreiburg/map_creation_amsterdam_python

Repository files navigation

Creating a map and KDE plot of points and polygons with Python

This tutorial teaches you how to plot map data on a background map of OpenStreetMap using Python. The tutorial can be found on my blog. The results should look like the following images:

Map 1 Map 2 Map 3

Installation

This tutorial requires the installation of multiple packages, a few of them are not installable for windows under pip. Therefore, the packages

FionaGDAL
Rtree
Shapely

can be installed as wheels with this code:

pip install .\package_wheels_windows\Fiona-1.8.9-cp37-cp37m-win_amd64.whl
pip install .\package_wheels_windows\GDAL-3.0.1-cp37-cp37m-win_amd64.whl
pip install .\package_wheels_windows\Rtree-0.8.3-cp37-cp37m-win_amd64.whl
pip install .\package_wheels_windows\Shapely-1.6.4.post2-cp37-cp37m-win_amd64.whl

After that, the rest of the packages should be easily installable by using the provided requirements.txt file:

pip install -r requirements.txt

About

This tutorial teaches you how to plot map data on a background map of OpenStreetMap using Python.

Topics

Resources

Stars

Watchers

Forks