[Qgis-user] Conditional Value Mapping

ALT SHN i.geografica at alt-shn.org
Thu Apr 23 03:19:51 PDT 2015


Hi,

I am looking for a way to implement conditional value mapping in QGIS. This
means that the values available in attribute number 2 depend on the value
provided in attribute 1.

Example:

If the user enters "agriculture" in attribute 1, for attribute 2 only
"corn" or "wheat" will be available.

Instead, if the user enters "forest" in attribute 1, for attribute 2 only
"pines" or "olives" will be available.

And so on...

Apparently this is not doable just using the QGIS widget expression
builder, but I am not sure. Here's a screencast to help visualize. The
problem is that if for "class" I pick other than "Agri_Field", for the
"color_aggri" attribute the same possible values appear.

[image: enter image description here]

Thanks in advance for any hints!


Regards,


Andre




-- 
---------------------------------------------------------------


*Sociedade de História Natural*
Departamento de Informação Geográfica
Polígono Industrial do Alto do Amial
Pav.H02 e H06

i.geografica at alt-shn.org <laboratorio at alt-shn.org>
www.shn.pt
www.alt-shn.blogspot.com
Facebook <https://www.facebook.com/SociedadeDeHistoriaNatural?ref=hl>

TLM: 964138188
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150423/4b367ded/attachment.html>


More information about the Qgis-user mailing list