[GIS] QGIS project to TMS tileset

qgistile-map-servicetiles

I'm trying to turn a QGIS 2.4 project into a TMS tileset. What method have folks used, with what success and what level of effort?

The project in question has about 50 layers and uses OTF projection since different layers are in different CRSs.

  • the QTiles plugin hangs (and takes down the rest of QGIS with it) at 'Rendering: 0 from … (0%)' even for a fairly small area and just a couple of zoom levels; I think this is just because the render function hangs in the same manner if you call it directly? Is there any way to avoid this problem with QTiles?

  • gdal2tiles, using geotiff rendered from QGIS as input – I'd have to assemble a VRT and use that as input since QGIS errors out if I try to render one geotiff of even a small fraction of the size needed, so, this would be a question of writing a script to render many smaller geotiffs and building a corresponding VRT, right? A current problem I'm having with this is trying to effectively 'apply OTF projection for the render function' since the render output only has the data of whichever layers' native CRSs result in data in the area defined by the QgsRectangle; is there an easy way to do that?

  • a slight variant of the above – skip the gdal2tiles step and write a script to render 256×256 .png tiles directly from QGIS

  • QGISServer and tilecache – I haven't tried this option but the overhead of setting up the local web server seems daunting; has anyone used this option with good success?

  • any other plugins or (simpler) methods to accomplish this task?

Best Answer

I dont think there is an easy and simple method.

  1. I also found qtiles did not work.
  2. Qgis Server is probably the easiest route, because it all uses the same styling system. However it does involve an awful lot of software.
  3. mapserver, tilecache may be easier to install in some situations, i get the impression it has less dependencies.
  4. the simplist way might be a python script. see http://mikeongis.wordpress.com/2011/08/29/printing-map-part-ii-map-tiles-with-qgis/
  5. checkout tilemill http://www.klaasnienhuis.nl/2012/08/creating-maps-with-qgis-and-tilemill/ (but only works with spherical mercator).
Related Question