I'm a working on a QGIS script that could activate/deactivate rule-based styles of the vector layer in a loop (one active layer per iteration). On the every iteration this scenario should:
- Activate one of the prearranged style rules for a given vector layer and deactivate all other;
- Save current view as JPEG screenshot;
In my particular case the vector layer is a PostGIS table that contains the contours derived from some raster layer. Rules are based on the distinct values of the isolines. I take screenshot of the map for the every activated rule and finally put them all into the animated gif.
Since list of the rule-based styles can be very long, I'm looking torward the PyQGIS code snippet that could go through the one in a loop.
Aucun commentaire:
Enregistrer un commentaire