qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.42k stars 2.98k forks source link

Skip Output not available in `Run as Batch Process` Mode of Processing Algorithms #53343

Open ar-siddiqui opened 1 year ago

ar-siddiqui commented 1 year ago

What is the bug or the crash?

Skip output is one of the options for some processing algorithms like Raster Terrain Analysis >Relief. It is possible to Skip Output for Frequency Distribution when running the algorithm as a single process. It still runs fine when you run it as a batch process from the GUI but it doesn't allow exporting the JSON. Basically, there is no option for Skip Output in the Run as Batch Process mode.

See the below error when trying to export JSON in the Run as Batch Process mode for Algorithms with Skippable Outputs. image

I tried exporting it with some value for Frequency Distribution and then manipulating JSON value for Frequency Distribution with null and empty string but both of these ways fails when I tried to load the manipulated JSON back into Run as Batch Process mode.

Steps to reproduce the issue

Try this on Raster Terrain Analysis >Relief algorithm.

Versions

QGIS version 3.28.7-Firenze QGIS code revision fedae0eb52 Qt version 5.15.3 Python version 3.9.5 GDAL/OGR version 3.7.0 PROJ version 9.2.0 EPSG Registry database version v10.082 (2023-02-06) GEOS version 3.11.2-CAPI-1.17.2 SQLite version 3.41.1 PDAL version 2.5.3 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.13.1 OS version Windows 10 Version 1909

Active Python plugins processing 2.12.99

Supported QGIS version

New profile

Additional context

No response

AlisterH commented 1 year ago

This problem must be specific to that algorithm - usually if an output is optional it can just be left blank.

ar-siddiqui commented 1 year ago

This problem must be specific to that algorithm - usually if an output is optional it can just be left blank.

I checked at least two algorithms and the issue was persistent with both of them. Algorithms are not responsible for dealing with Run as Batch Process mode anyways.

AlisterH commented 1 year ago

OK, I misunderstood your description. I thought you were saying that "Run as batch" doesn't work - i.e. clicking the run button. You are actually saying that the save button does not work. It does work if you put SKIP_OUTPUT in the Frequency distribution column.