Im new at QGIS, started 2 weeks ago. I'm trying to automatize the display of a map and get rid of some "duplicated" layers and all the extra work. I need to know if SAGA's dissolve can be used in the Geometry Generator, using a personalized function. I tried something like the following
from qgis.core import * from qgis.gui import * @qgsfunction(args='auto', group='Custom') def DisolverSAGA(layer, field, feature, parent): asd = processing.runalg('saga:polygondissolvebyattribute', layer, field) return asd
Honestly, the fact it didn't work doesn't surprise me, I'm too new at this and I'm not a programmer or anything.
Already tried using
buffer(collect($geometry,"REGLABEL"),0) in the geometry generator expression, but I'm using that symbology with a transparency and I noticed that the borders of the resulting polygons have different scales of color, as if that generated one different output for each original geometry and they were stacking, thats why im trying to emulate the process used to generate the existing shapefiles