简体   繁体   中英

Hide labels when are covered from a polygon

I need to mask all labels from a layer when they are outside a covering vector. On the image below there are contours; the lines are visible only if they intersects a polygon from a mask layer that is excluded with a filter. I'm be able to hide the lines that doesn't intersects the polygon, but I can't do the same with the labels. 在此处输入图像描述

I'm using QGIS 3.22, below the filter managed from atlas.

在此处输入图像描述

You should to clip your polygon by mask before show the labels.

You can do that using this tools:

clip vector by mask layer

enter image description here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM