-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
partial fix for SAGA RGB composite tool #8418
partial fix for SAGA RGB composite tool #8418
Conversation
It's a decision by design to avoid implicit transformation and leave the original format to the backend that are not designed to produce a different format. This can be solved cascading the algorithm to a converter (if available). |
@gioman as usual, please add a test ;) |
@luipir I'm aware that now SAGA outputs only in its native format. What I wanted to point in this PR is that in this specific case this strategy does not work. With the now fixed parameters names the tool will generate an output but this is wrong (is not the expected RGB raster). So this specific tool that is already handled as a special case must be tweaked to work. In the SAGA command line here https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/saga/SagaAlgorithm.py#L324 "filename" must be defined as (example) a TIF output. I tried to add a + '.tif' here https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/saga/SagaAlgorithm.py#L321 but it still generate a SAGA raster. |
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
While we hate to see this happen, this PR has been automatically closed because it has not had any activity in the last 21 days. If this pull request should be reconsidered, please follow the guidelines in the previous comment and reopen this pull request. Or, if you have any further questions, just ask! We love to help, and if there's anything the QGIS project can do to help push this PR forward please let us know how we can assist. |
@nyalldawson ok to merge also without test? for me it's ok... waiting for a processing test crash course ;) |
well, seems that at least this PR is necessary to generate correct values... other aspect is that these values are in a manageable format... btw wait for @gioman opinion |
Fix inbound |
See #8597 |
@nyalldawson sorry fot late reply, yes I confirm. |
This issue is still present in QGIS version 3.4.3-Madeira - should the fix have rolled out in the last QGIS update? |
Description
The SAGA "RGB Composite" has wrong parameters names. Anyway this is not a complete fix:
this tool MUST output an "image", explanation here:
https://gis.stackexchange.com/a/301146
and this is the reason the tool output is generated as a special case here:
https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/saga/SagaAlgorithm.py#L324
but the problem (unresolved by this patch) is that now SAGA outputs only in its native format, while this export operations MUST generate a TIFF (for example), otherwise the output (now generated because of the correct parameters names) will not show the expected values/colors (in fact it won't even be a RGB raster).
Checklist
fixes #11111
in the commit message next to the description[FEATURE]
in the commit message[needs-docs]
in the commit message and contain sufficient information in the commit message to be documentedscripts/prepare-commit.sh
script before each commit