Wednesday 28 March 2018

Generating Tiles with QGIS?


Is it possible to generate map tiles from QGIS?


I guess QGIS Server must have a way to do it, but is there a way to just generate the tiles and save them to disk?


With the new symbology renderer and scale-dependent rendering, QGIS is a powerful tool for generating dynamic maps.


Since I'm using the new-symbology renderer, qgis-mapnik is not an option, and since I'm using scale-dependent rendering, just generating a large georaster and using gdal2tiles to tile it is also not an option.



Answer




It is possible to generate tiles using python console, you can read about it here. Keep in mind, that you might need to modify the script.


However I would encourage you to use mapnik for generating tiles, as above mentioned qgis script did not work well for me.


Styling map is easy with xml for mapnik, you will not have any trouble with it. Some modifications for quantumnik will let you generate tiles directly from qgis.


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...