Message posté par : Vincent
----------------------------------------
Et une fois tout compris, ça donne :
-----------------
Code :
with_variable( 'nombre_arbre', array_length(array_filter(array( "ARBRE1"
, "ARBRE2" , "ARBRE3", "ARBRE4" ), @element
='PRESENCE')),
CASE
WHEN @nombre_arbre = 1 THEN 0
WHEN @nombre_arbre = 2 THEN 0
WHEN @nombre_arbre= 3 THEN 1
WHEN @nombre_arbre= 4 THEN 2
END
)
-----------------
:)
----------------------------------------
Le message est situé
https://georezo.net/forum/viewtopic.php?pid=323002#p323002
Pour y répondre : qgis_fr(a)ml.georezo.net ou reply de votre messagerie
Pour vous désabonner connectez-vous sur le forum puis Profil / Abonnement
--
Association GeoRezo - le portail géomatique
https://georezo.net