[Qgis-user] If/Else with raster calculator
Jonathan Moules
jonathanmoules at warwickshire.gov.uk
Tue Feb 25 09:00:58 PST 2014
Hi List,
How do I do a If/Else with the raster calculator *and* have the ability to
set arbitrary values for both conditions.
For example, similar to the below psuedocode:
If(condition):
> Cell = 9
> else:
> Cell = 68
This seems like it'd be a core part of a raster calculator but all I can
find is the ability to get True/False and then cludge around that, i.e.
with:
> (condition) * 9
What am I missing? Good tutorials welcome (the ones I've found don't show
anything beyond true/false).
Thanks,
Jonathan
--
This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from us,
including without limitation all GCSX traffic, may be subject to recording
and/or monitoring in accordance with relevant legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140225/2d6d701d/attachment.html>
More information about the Qgis-user
mailing list