This isn't a built-in feature...

If the masking layer has no labels associated with it then you can try setting 
a parameter called POSTLABELCACHE to TRUE. That will draw the layer in question 
after the labels have been placed. However that will result in partially 
obscured labels. Your best bet would be to somehow identify polygons that can 
be labeled ahead of time, perhaps be intersecting their centroids and your 
mask. It would be an interesting hack to define a label mask layer or something 
along those lines to filter labels against before rendering.

Steve

-----Original Message-----
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of windfreak
Sent: Friday, March 12, 2010 7:57 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Masking labels


Hello,

I have made a mapserver image (see the example). This image consists of 2
layers. The top layers works as a mask over the bottom layer so I only see
the bottom layer where I want it to see.
Unfortunately, the labels of the bottom layer aren't masked. Can somebody
tell me how to do that in one image? When possible, I don't want to see half
labels.
Thanks

http://n2.nabble.com/file/n4722191/mapserv.png 

-----
http://www.topspots.org
-- 
View this message in context: 
http://n2.nabble.com/Masking-labels-tp4722191p4722191.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to