QGIS icon indicating copy to clipboard operation
QGIS copied to clipboard

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

Open ar-siddiqui opened this issue 2 years ago • 3 comments

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

  • [X] I'm running a supported QGIS version according to the roadmap.

New profile

  • [X] I tried with a new QGIS profile

Additional context

No response

ar-siddiqui avatar Jun 02 '23 20:06 ar-siddiqui

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

AlisterH avatar Jun 27 '23 06:06 AlisterH

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.

ar-siddiqui avatar Jun 27 '23 14:06 ar-siddiqui

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.

AlisterH avatar Jun 29 '23 05:06 AlisterH