[OSM-dev] downloading partial tilesets to serve locally]

Joerg Ostertag (OSM Tettnang/Germany) openstreetmap at ostertag.name
Mon Jan 5 18:31:26 GMT 2009


If you have a debian system; another possibility would be to render your tiles 
yourself with mapnik. It's really not too complicated.
Installing the openstreetmap-*.deb Packages from www.gpsdrive.de/debian will 
install all needed stuff. Then you'll only have to import the adewuate area 
with something like
	mapnik-osm-updater.sh --all-planet-geofabrik=europe/germany
And you're set.
Then you can use one of these to get tiles/images ...
	gpsdrive
	generate_image.py (svn.openstreetmap.org/applications/rendering/mapnik/)
	generate_tiles.py (svn.openstreetmap.org/applications/rendering/mapnik/)


On Montag 05 Januar 2009, Frederik Ramm wrote:
> Hi,
>
>     in addition to what has already been said, Jozef Vince pointed me at
> a Perl script that he has written to download tiles from a tile server.
>
> With his permission, I have commited this script to our SVN at:
> svn.openstreetmap.org/applications/utils/tileDownloader
>
> Thank you Jozef!
>
> Below is Jozef's E-Mail explaining how it works.
>
> Bye
> Frederik
>
> -------- Original Message --------
> From: Jozef Vince (freemap.sk) <jozef.vince at freemap.sk>
> To: 'Frederik Ramm' <frederik at remote.org>
>
> [...]
>
> In demo.conf
> You can see some settings - I think they are self explanatory but in short:
>
> X=2244  / coords of left upper tile
> Y=1417
> Zoom=12 / start zoom
> Zoom2=16 / end zoom
> W=2 / width of area in titles on start zoom
> H=2 / height
> R=230 / tile background RGB  - in case of combining multiple transparent
> tilesets
> G=230
> B=230
> Layers=relief,topo,tiles,trails,names   // list of layers one or more
> Layer.relief.URL=http://www.freemaps.sk/relief/%d/%d/%d.jpg
> Layer.relief.type=jpg
>
> // for every layer you should specify the URL and type  - jpg or png
>
> Then you just have to run
>
> perl tileDownloader2.pl conf demo.conf
>
> tiles will be downloaded from specified layers, combined into one and saved
> into path ./data/z/x/y.png
>
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
-- 
Jörg (Germany, Tettnang)

http://www.ostertag.name/




More information about the dev mailing list