[Qgis-user] Conditional expresion

Nicolas Cadieux nicolas.cadieux at archeotec.ca
Fri May 15 11:51:49 PDT 2015


Hi,
In QGIS something like  "Layer at 1" < 1 will give you a raster with 1 
(meets condition) and 0 (does not meet condition).  To have a layer 
where the original value are returned, you will need to multiply this 
answer by the layer:   ("Layer at 1" < 1 )*"Layer at 1". Hope this helps.
Nicolas

Le 2015-05-15 14:01, Md.Azizul Haque [via OSGeo.org] a écrit :
>
> Hi All,
> I need to perform following calculation by QGIS
> Con(“Summer mean temperature” <= 10,1, Con(“Winter Mean temperature” 
> <= -3, Con(Annual Precipitation >= 1540,21,22), Con(annual 
> precipitation<= 1540, 31,32))).
> I know it can be done by Arcgis easily but I do not know about default 
> raster calculator of QGIS.
> Any help are much appreciated.
> Kind regards
> Azizul
>
>
> _______________________________________________
> Qgis-user mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=5205961&i=0>
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the 
> discussion below:
> http://osgeo-org.1560.x6.nabble.com/Conditional-expresion-tp5205961.html
> To start a new topic under Quantum GIS - User, email 
> ml-node+s1560n4125267h38 at n6.nabble.com
> To unsubscribe from Quantum GIS - User, click here 
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4125267&code=bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg==>.
> NAML 
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> 
>





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Conditional-expresion-tp5205961p5205967.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150515/7633c6c4/attachment.html>


More information about the Qgis-user mailing list