QGIS 2.8.2 - Using spatial expressions in labelling

المشرف العام

Administrator
طاقم الإدارة
I'm creating some hard copy map output from QGIS.

I want to use an expression to suppress labels for some features on a layer when another feature from another layer intersects with those features.

E.g. I want to suppress labels for river (line) features when they intersect with lake (polygon) features.

From my understanding of the documentation the expression should look something like this in the Layer Properties label dialogue of the 'Rivers' layer:

CASE WHEN intersects( ( $geometry , geometry(getfeature(Lakes_dams)) = 1 THEN null ElSE title( "NAME") END

This is invalid so what is the correct syntax?



أكثر...
 
أعلى