[Maps-l] render-tool now supports --zoom parameter
Peter Körner
osm-lists at mazdermind.de
Wed Nov 3 13:50:07 UTC 2010
Hi
I extended the render command line tool to support zoom level calculation:
/home/project/o/s/m/osm/bin/render \
--style /home/project/o/s/m/osm/p_osm/styles/bw-mapnik/osm-bw.xml \
--bbox 8.17,50.04,8.36,49.95 \
--zoom 12
To make Style-Designers life easier it's better to add
/home/project/o/s/m/osm/bin/ to the path by placing the following lines
into the .bashrc file in your home dir:
PATH=$PATH:/home/project/o/s/m/osm/bin
export PATH
STYLES=/home/project/o/s/m/osm/p_osm/styles
export STYLES
Also its good to have some bboxes as shell variables. I have a file
bboxes in my homedir that looks like this:
BBOX_DEUTSCHLAND=5.56,55.04,15.35,47.15
BBOX_EUROPA=-17.14,56.37,27.61,35.34
BBOX_MAINZ_WIESBADEN=8.08,50.11,8.44,49.95
BBOX_MAINZ=8.17,50.04,8.36,49.95
BBOX_BERLIN=12.88,52.67,13.8,52.35
BBOX_ALZEY=8.03,49.79,8.21,49.7
BBOX_ERBENHEIM=8.27,50.07,8.32,50.04
with areas I'm interested in. This file is loaded on login using a line
like this in my .bashrc:
you can then do
render --style $STYLES/bw-mapnik/osm-bw.xml --bbox $BBOX_MAINZ --zoom 12
and get your map.
Peter
More information about the Maps-l
mailing list