I'm very new and very confused about how to accomplish a seemingly simple task: generate my own OSM .png tiles for offline use. Since I want to be able to have a huge amount of tiles, I don't want to load the server by downloading tiles directly from I was using Creating your own tiles, but learned that this method is outdated with the new styling method: mapnik-stylesheets issue #15 Since this is all new to me, I'm quite confused at the sheer number of methods and tools I've seen recommended to download, format, and render OSM tiles. As far as my progress, here are the steps I have taken:
I'm at a loss at where to go from here with my current understanding of how this all works. If anyone can point me in the right direction, I'd greatly appreciate it. asked 13 Jul '19, 00:23 Karmic Creditor |
What I'd suggest is:
The problem with generate_tiles.py is that it'll complain about unused font definitions in the stylesheet. Edit: As noted below this will generate metatiles, not .png tiles, which probably isn't the best route here. answered 13 Jul '19, 00:41 SomeoneElse ♦ 1
I did have to edit the
(13 Jul '19, 00:58)
Karmic Creditor
1
The method you suggested works great. One thing I'm curious about is the diary entry you mentioned. When calling
(13 Jul '19, 06:01)
Karmic Creditor
2
.meta files are containers that contain 64 PNG files each. To extract .png from .meta, either run mod_tile in your Apache web server and run lots and lots of "wget" or "curl" commands against your own web server, or use https://github.com/geofabrik/meta2tile to go from meta to png without mod_tile/Apache.
(13 Jul '19, 10:01)
Frederik Ramm ♦
1
It sounds like you're nearly there - just one comment about "I did have to edit the osm.xml to remove all fonts except Deja Vu Sans because of the complaining": You might find it easier to edit the stylesheet (the thing you run "carto" on) rather than editing the generated .xml directly. If you can find out what's causing the problem you can probably edit it out in one place in a .mss file rather than many from the generated .xml.
(13 Jul '19, 11:15)
SomeoneElse ♦
Thank you two for the help. I will use meta2tile when the render_list completes
(13 Jul '19, 12:14)
Karmic Creditor
|
(Two years later) You could also use my beefed up version of answered 15 Mar '21, 20:38 Marcos Dione |