You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Johannes Schauer Marin Rodrigues a4ced15215
port to py3 and format with black
3 years ago
README.md add dependencies 10 years ago
Weser-Radweg-Hauptroute.csv add Weser-Radweg-Hauptroute.csv 10 years ago
map.png add map.png 10 years ago
mapbender.py port to py3 and format with black 3 years ago

README.md

Mapbender bends a map along a path.

Example execution:

./mapbender.py Weser-Radweg-Hauptroute.csv 0.286 6 20

The openstreetmap map of the Weser area is currently hardcoded. Upon execution it will show the path given in Weser-Radweg-Hauptroute.csv on the map in a matplotlib plot. It will show the approximated b-spline with the given smoothing factor (6 above) and the map section of the given width (0.286 above) around that curve. The area will be split into sections (20 in the example) which will individually be transformed into rectangles which are also plotted.

On Debian systems you need the following packages:

apt-get install python python-pil python-scipy python-tk python-matplotlib python-numpy