[Qgis-user] putting a script that doesn't involve GUI in scripts toolbox

Reginald Reginald.Carlier at ingelmunster.be
Tue Aug 28 00:49:59 PDT 2018


Hello,

In QGIS 2.18 I made a script that created a feature from the selected
Cadastral Parcels. That way I didn't have to draw them manualy.
I want to use this script in QGIS 3 and put it in the Toolbox Processing.
I did some changes to the script like replacing MapLayerRegistry with
QgsProject and such, but at a point when I wanted to test my script I only
get a notice saying "There seems to be no valid script in the file".
I looked at the Python Errors and Warnings dialog but could not find any
log.
How can I put this script in the toolbox? I know there is a template for a
script available but I want to use a script that doesn't open a window: just
click on the script so it executes.
Is this still posible in QGIS 3?

Regards,




--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html



More information about the Qgis-user mailing list