I want to render tiles and I have a problem. I made postGIS db, succesfully run TileMill with OSMBright style. I read that I need now export mapnik xml from TileMill. I checked Mapnik as in python tutorial- everything works fine. I've changed generate_tiles.py:
but an error occures:
I think the .xml is not made properly (it has written path as reference to current path) but maybe I am wrong. I have checked :
and changed the fontpath in osm.xml, but there is no such fonts registered by Mapnik . I printed out known fonts by:
but there isn't a My questions:
asked 20 May '14, 11:00 r2d2 |
When exporting from TileMill, I've seen the same effect when moving to a different machine where paths are different. I got around it (with the "standard" OSM map style, not OSMBright) by editing paths where they varied to match the target machine. Using the "carto" utility to do the export rather than TileMill (as mentioned here) may also fix the problem, but I've not tried that with OSMBright, and I've not tried that on a machine with TileMill also installed, so I can't guarantee there won't be node.js package mismatches between what TileMill needs and what carto does. (someone please edit if that last sentence is me worrying unnecessarily).
permanent link
This answer is marked "community wiki".
answered 20 May '14, 11:11 SomeoneElse ♦ I have used OSMBright becouse it creates project for TileMill- I dont have to add layers manually. Is there sth. like this for carto?
(20 May '14, 12:54)
r2d2
The OSM standard style can be loaded into TileMill. It's quite big with lots of layers (you'll need to use an external editor to edit files as TileMill will run out of tabs) but it does load and export without problems.
(20 May '14, 13:17)
SomeoneElse ♦
could You tell me how to do this because I'am a bit confused- I use this style when osm2pgsql. And than what I should do? (how to add all the layers) Ok, I've just pasted the files to my project pff this coses errors ;/ how can it be easily loaded??
(20 May '14, 13:22)
r2d2
|