-
-
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
Add a 2 cases if() command to Raster Calculator #14403
Comments
Author Name: alobo - (alobo -)
|
Author Name: Tim Sutton (Tim Sutton)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Pirmin Kalberer (Pirmin Kalberer)
|
Author Name: Médéric RIBREUX (Médéric RIBREUX) Hello, bug triage... the raster calculator can handle conditions but the expression is not so easy to understand:
will make cells with a value less than 50 have a value of 1 and cells with a value greater than or equal to 50 have a value of 2. Was your feature request about a way to have conditions in the raster calculator or about the syntax of the condition ?
|
Author Name: alobo - (alobo -) Well, that syntax is really odd, I had not even thought on it. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Alister Hood (@AlisterH) Is this ticket really waiting for feeback? Of what in particular?
if(condition, result1, result2) where the output value is result1 if condition==T and result2 otherwise. Agus to An if() command with 2 cases output would be most useful: if(condition, result1, result2) where the output value is result1 if condition==T and result2 otherwise. Agus |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
I don't think this ticket was really waiting for feedback. That's not to say that keeping the ticket open will achieve anything... |
I see #16517 is still open - maybe this can be considered a duplicate of it, and closed. |
Author Name: alobo - (alobo -)
Original Redmine Issue: 4476
Redmine category:rasters
An if() command with 2 cases output would be most useful:
if(condition, result1, result2)
where the output value is result1 if condition==T and result2 otherwise.
Agus
The text was updated successfully, but these errors were encountered: