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
2010/11/3 Peter Körner osm-lists@mazdermind.de:
I extended the render command line tool to support zoom level calculation:
Thanks, that's very useful. BTW, is that script publicly accessible somewhere, or living in some repository?
Cheers Colin
Am 08.11.2010 22:24, schrieb Colin Marquardt:
2010/11/3 Peter Körnerosm-lists@mazdermind.de:
I extended the render command line tool to support zoom level calculation:
Thanks, that's very useful. BTW, is that script publicly accessible somewhere, or living in some repository?
I've put it there: http://svn.toolserver.org/svnroot/p_osm/tools/
should better to to the osm svn, i think.
Peter
Hi,
I extended the render command line tool to support zoom level calculation:
Thanks, that's very useful. BTW, is that script publicly accessible somewhere, or living in some repository?
It's usefull, indeed!
I extended the script a little more so it allows X and Y, as used with slippy maps:
/home/ti/bin/render -X 137386 -Y 91839 -z 18
renders the same as
http://tile.openstreetmap.org/18/137386/91839.png
Feel free to copy it to osm_p
Regards, Thomas
Am 10.11.2010 15:02, schrieb Thomas Ineichen:
I extended the script a little more so it allows X and Y, as used with slippy maps:
/home/ti/bin/render -X 137386 -Y 91839 -z 18
renders the same as
http://tile.openstreetmap.org/18/137386/91839.png
Feel free to copy it to osm_p
Nice! What do you think of packing those three arguments into one:
render --tile 18/137386/91839.png
where the .png is optional.
Peter