Generate a map of Germany with highlighted WTF member locations.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Lukas Grossberger 6344bc1382 switch to matplotlib and add bundesland borders 7 months ago
.gitignore add code to generate member map 8 months ago
Dockerfile increase png size and crop padding 7 months ago
LICENSE Initial commit 8 months ago
README.md add code to generate member map 8 months ago
main.py switch to matplotlib and add bundesland borders 7 months ago
requirements.txt switch to matplotlib and add bundesland borders 7 months ago

README.md

Map of Germany with highlighted WTF member locations

Docker Usage

Download the Germany PLZ dataset in the GeoJSON format from https://opendata-esri-de.opendata.arcgis.com/datasets/5b203df4357844c8a6715d7d411a8341_0 and place the file in the root of this repository.

Place a JSON file containing a list of PLZ prefixes as wtf_member_plz_prefixes.json in the root of this repository. The file contents should look like ["121", "635"] for PLZ data that is anonymized to the first three digits.

The following will build a Docker image and render the map with the default configuration for the WTF member PLZ prefix data:

docker build -t wtf-map .
docker run wtf-map > map.png

Note, the build command already renders the map and thus can take a moment. The run command just outputs the already rendered image to be piped into any target file on the host system.

Script Usage

In case you'd like custom colors or use different data, you are encouraged to use the script explicity. To get all relevant requirements, you can pip install -r requirements.txt, but note, you might need to install BLAS and GEOS libraries on your system.

The following will tell you all about what you can adjust for a custom visualization:

python main.py --help