3 MAPNIKDIR
="${MAPNIKDIR-/home/eddy/usr/src/osm/mapnik/mapnik}"
6 echo "I: Generating map ..."
7 .
/generate_image.py
&& mkdir
-p _maps
9 [ "$1" ] && MAPNAME
="$1" || MAPNAME
=image.png
10 [ "$2" = "--caption" ] && CAPTION
=yes || CAPTION
=no
12 echo "I: Cropping resulted map to desired size ..."
13 convert
-crop 5000x3500
+2350+5200 image.png _maps
/image.png
14 if [ "$CAPTION" = "yes" ] ; then
15 convert
-fill black
-font helvetica
-pointsize 300 -draw "text 100,300 \"Caracal $MAPNAME\"" _maps
/image.png _maps
/$MAPNAME.png
17 mv _maps
/image.png _maps
/$MAPNAME.png
19 echo "I: Cleaning up ..."