You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2013-02-13 02:30:42
- errox
- Member
- Registered: 2012-11-26
- Posts: 14
Get PNG's / Generate all Tiles at once - how?
Hello Friends,
now i have finaly my own Tileserver.
Thanks to these tutorials:
http://wiki.openstreetmap.org/wiki/DE:U … ile_server
https://help.openstreetmap.org/question … -on-debian
http://wiki.openstreetmap.org/wiki/HowTo_mod_tile
Point 1:
The Point is, if i call localhost/osm, it shows me my Map -> Good
If i call for example http://localhost/osm/11/1066/691.png It shows me the Tile -> Great!
But there is no .png, there are just .meta files (Path var/lib/mod_tile)
I dont want .meta files, i want all Tiles as .png so i can Host my Tileserver whereever i want without the Packages, Buffering, Caching, ....
How do i do this?
Point 2:
If i call a tile (example http://localhost/osm/11/1066/691.png) and it is not rendered / generated yet, it will generate it not till it will be called.
I Want to Generate / Render / Cache all Tiles at once.
And then Get them as png files (Point 1)
Please help me!
Thank you!
Best regards
errox
Offline
#2 2013-02-13 17:29:10
- stephan75
- Member
- Registered: 2008-05-28
- Posts: 2,918
Re: Get PNG's / Generate all Tiles at once - how?
Unfortunately I cannot answer your questions, but maybe some more hints are at http://switch2osm.org or http://wiki.openstreetmap.org/wiki/Tirex ?
Offline
#3 2015-09-11 14:03:52
- bohers
- Member
- Registered: 2015-09-11
- Posts: 1
Re: Get PNG's / Generate all Tiles at once - how?
Hi Errox,
Did you finally find a way to do it ? I'm currently trying to do the same.
Best regards,
Sébastien
Offline
#4 2015-09-19 14:20:34
- poempelfox_forum
- Member
- Registered: 2014-12-20
- Posts: 64
Re: Get PNG's / Generate all Tiles at once - how?
If you simply want to get static .png files, you could have skipped the whole mod_tile part of the tutorials. You just need a simple wrapperscript around mapnik to tell it to generate tiles and write them to disc.
The one I usually use is polytiles.py. You'll need to give it a bunch of parameters to tell it from which style.xml-file it should render and where it should put the file. A typical command might look like:
./polytiles.py -s /path/to/openstreetmap-carto.xml -z 0 8 -b -180.0 -90.0 180.0 90.0 -t /path/to/output/You'll probably need more parameters, but this should get you started.
Note however that static tilegeneration does have its limits: With every zoomlevel, the number of tiles needed to cover it are quadrupled. For the whole planet, the number of tiles needed to cover it at a certain zoomlevel is 4^z (four to the power of z). So for example, the whole planet in zoomlevel 17 would require 17179869184 .png-files. That is not really feasible. Even if you want to cover just a small area instead of the whole planet, these numbers can get very big very quickly.
Offline