comically exaggerated relief maps made easy
the python bindings for mapnik (as well as for gdal if you also want the script to generate hillshades on the fly)
# london x 400
./alpinia.py -x gallery/londinium.xml --hillshade 400 --center 51.51 -0.06 --scale 35000 gallery/londinium.png
./alpinia.py -x gallery/londinium.xml --hillshade 400 --size 800 200 --center 51.48 -0.02 --scale 50000 gallery/londinium-small.png
./alpinia.py -x gallery/londinium.xml --hillshade 400 --size 800 200 --center 51.49 -0.06 --scale 170000 gallery/londinium-wide.png
# edinburgh x 500
./alpinia.py -x gallery/sevenhills.xml --hillshade 500 --scale 20000 --center 55.938 -3.225 gallery/sevenhills.png
./alpinia.py -x gallery/sevenhills.xml --size 800 200 --hillshade 500 --scale 40000 --center 55.943 -3.215 gallery/sevenhills-small.png
./alpinia.py --help
## usage: alpinia.py [-h] [--xml XML] [--size SIZE SIZE] [--center CENTER CENTER]
## [--scale SCALE] [--hillshade [HILLSHADE]]
## [output]
##
## alpinia! comically exaggerated relief maps made easy
##
## positional arguments:
## output output filename (default: alpinia.png)
##
## optional arguments:
## -h, --help show this help message and exit
## --xml XML, -x XML mapnik style file (default: alpinia.xml)
## --size SIZE SIZE output width and height in pixels. if one of them is
## 0, the other will be chosen so that the aspect of the
## map matches that of the input data file (default:
## [1920, 1080])
## --center CENTER CENTER
## desired map center (latitude and longitude in degrees)
## --scale SCALE desired map scale
## --hillshade [HILLSHADE], -z [HILLSHADE]
## (re-)generate hillshading. input and output filename
## are extracted from the xml file's 'relief' and
## 'hillshade' layers respectively. optionally, specify
## the z exaggeration to use for the hillshading
## (default: 1.0)