Batch commands #171
-
Hi, I'm a new SCP user. Thanks for this usefull plugin! 2 questions about batch commands:
no error, nothing happend. I don't what's wrong and how to debug.
Thanks for your answer! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, About the second issue, yes it is a " issue. You should escape the " such as \"DN\" . For instance this works for me (there is an error message about GDAL that can be ignored) |
Beta Was this translation helpful? Give feedback.
Hello,
about your first issue it is related to the path. It seems that input_raster_path is not correct or the input raster is not found.
About the second issue, yes it is a " issue. You should escape the " such as \"DN\" .
Also there is a typo, 'flield_name' should be replaced by 'field_name' in your expression.
For instance this works for me (there is an error message about GDAL that can be ignored)
qgis_processing;command : 'native:fieldcalculator' ;parameters :'FIELD_LENGTH' : 3, 'FIELD_NAME' : 'newfield', 'FIELD_PRECISION' : 3, 'FIELD_TYPE' : 0, 'FORMULA' : 'CASE WHEN \"DN\"=1 THEN 1 WHEN \"DN\"=2 THEN 0.9 END', 'INPUT' : 'C:/Users/user/Desktop/shape.shp', 'OUTPUT' : 'C:/Users/user/D…