[Qgis-user] Use of processing in order to run model from script
Reginald
Reginald.Carlier at ingelmunster.be
Thu Jun 21 05:17:01 PDT 2018
Hi,
I have build a model that works perfectly, and I want to wrap this in a
script.
In processing history I can see the command that gets executed:
processing.runalg("modeler:bufferedselectionmodel","F:/Gis/Cadmap/Recent/Cadmap_Kadastrale_Percelen.shp",None)
When I make a script were I import processing and put the above line in, it
gives me an error while executing:
Uncaught error while executing algorithm
Traceback (most recent call last):
File
"C:/OsGeo/apps/qgis-ltr/./python/plugins\processing\core\GeoAlgorithm.py",
line 204, in execute
progress.setPercentage(100)
File
"C:/OsGeo/apps/qgis-ltr/./python/plugins\processing\gui\MessageBarProgress.py",
line 55, in setPercentage
self.progress.setValue(i)
RuntimeError: wrapped C/C++ object of type QProgressBar has been deleted
How could I solve this? I would like to run the model from inside another
script.
Regards,
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
More information about the Qgis-user
mailing list