New answers tagged

1

The easiest ways would be either using Tilemill (works standalone and offline) or QGIS with the QTiles plugin. Both allow you to render your tiles.


2

wait, it looks like it's expecting a file or a file-like object. when you say you have an json embedded in python, it's the whole json text, not the file path? a = "/home/george/boundaries.json" # file-path b = "{ 'type': 'FeatureCollection', 'crs': { 'type': 'name', 'properties': { 'name': 'EPSG:3857' } }, ...


2

You can use mapnik.save_map() import mapnik m = mapnik.Map(1440,800) # ... add styling and layers ... mapnik.save_map(m, "output.xml")


1

Assuming that you have, for example, a layer with the ID rivers. You could select each zoom level that the layer should be displayed at individually: #rivers[zoom=4],[zoom=5],[zoom=6] { ... } This would display the dataset only at zoom levels 4, 5, and 6. Or, and I think this is more what you were looking for, you can use a greater than: ...


0

I think that your problem is with your database or mapnik style. Where you got the osm file used to generate your database and how you generated your mapnik style? So, you need fisrt to verify if the database has repeated nodes or the mapnik style is incorrect. To verify if your database don't have repeated city names, you can use if you're using a ...



Top 50 recent answers are included