I have two features. One line feature and another polygon feature. I want the line feature label not to appear when it is within a polygon similar to the one in the figure. That is, I want the label to only appear when the line is outside the polygon. Is it possible to do this in Qgis3?
I tried the field calculator with the "within" function but it didn't work very well.
Below is the code I tried to do in the Qgis field calculator: CASE WHEN within( 'Lines_4e1a1089_ba02_495e_8c79_d32b79cf3b54','polygon_406a7fae_06b4_45a1_a20e_d64b8682e501') THEN " " ELSE THEN "Label" END