Thursday 4 April 2019

tiles - QGIS project to TMS tileset?


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 256x256 .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?







No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...