[QGIS-Developer] How to run QGIS 3 processing tool (DISSOLVE) in c++

SSchmidt at gfi-gis.de SSchmidt at gfi-gis.de
Fri Apr 1 03:09:47 PDT 2022


Hello,

for my QGIS C++ Plugin I have to run the QgsDissolveAlgorithm- processing 
tool.
I have found an example, how to do that in python:
import processing

infn = "path/to/dissolve"
outfn2 = "output/path/value/dissolve"

#dissolve features based on values in an attribute table field
processing.run("native:dissolve", {'INPUT':infn, FIELD':['GRID_CODE'], 
'OUTPUT':outfn2})

I searched in QGIS sources and on github but found no example, how to do 
that in c++.
Has anybody an idea?

Freundliche Grüße aus Leipzig
Susann Schmidt
Softwareentwicklung 

**************************************************************

GFI - Gesellschaft für Informationstechnologie mbH
Philipp-Rosenthal-Straße 9
D-04103 Leipzig
Geschäftsführer: Andreas Richter
Amtsgericht Leipzig HRB 12054
USt.-IdNr.: DE179049354     Steuer-Nr.: 231/109/06412
Tel. 0341 961 3310    Fax 0341 961 3311   Mail info at gfi-gis.de
Web  www.gfi-gis.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20220401/32412a03/attachment.html>


More information about the QGIS-Developer mailing list