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.
Johannes Schauer Marin Rodrigues a4ced15215
port to py3 and format with black
2 weeks ago
README.md add dependencies 7 years ago
Weser-Radweg-Hauptroute.csv add Weser-Radweg-Hauptroute.csv 7 years ago
map.png add map.png 7 years ago
mapbender.py port to py3 and format with black 2 weeks 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