meteoinfo / MeteoInfo

MeteoInfo: GIS, scientific computation and visualization environment.
http://www.meteothink.org/
GNU Lesser General Public License v3.0
311 stars 93 forks source link

VectoryLayer addLabels方法labels被遮照图层遮挡 #36

Closed hioak closed 1 year ago

hioak commented 1 year ago

map layer 使用 mask layer 遮照。在map layer上添加label。在map layer边沿label显示不全。有办法解决吗?

图片
Yaqiang commented 1 year ago

You can set each layer maskout or not using "setMaskout" method of the MapLayer. In this case, the station point layer can use setMaskout(false) to avoid label masked.

hioak commented 1 year ago

谢谢老师指点!但现在有个问题,有些站点在行政区划外,要去除这些站点,在不使用mask layout的情况下,如何实现?有工具类可以用吗?

Yaqiang commented 1 year ago

Please refer here: https://github.com/meteoinfo/MeteoInfo/blob/master/meteoinfo-geometry/src/main/java/org/meteoinfo/geometry/geoprocess/GeometryUtil.java#L553.

hioak commented 1 year ago

好的,我试试。谢谢老师。