I have installed Mapnik and successfully tested it. Now I am facing the problem of creating my own customized tiles. I have googled it but everywhere it was telling about OSM tile generation.
My vision is simple: I have a huge map data of my target area. I want to create my own custom map in Mapnik/Tilemill. Then create tiles and upload them into server. A step by step instruction would be helpful to me since I am a newbie in Mapnik.
The main problem: How can I create tiles with my own data?
Answer
Like some suggested... I think your path from now should be:
- Put data in some format supported by TileMill (if you want simplest, go with shapefiles, otherwise PostGIS database)
- In Tilemill, load your data and define the symbolisation for your map, then export a Mapnik XML config file. You can use this XML file together with
generate_tiles.py
script to create your tiles with Mapnik in the bounding box and zoom levels you specify (to specify bbox, zoomlevels, modifygenerate_tiles.py
, last few lines I think). - You can then use these generated tiles in a web app via OpenLayers or Leaflet.
This is just a rough outline that should get you started, you can ask more specific questions and I'll clarify.
- Structure your data
- TileMill (GUI + preview of your map)
- Mapnik XML export
- Mapnik tile generation (actual rendering)
- Upload tiles to your server (no need to use mbtiles)
- Serve tiles via XYZ or TMS layer in Openlayers
No comments:
Post a Comment