<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Might the layer masking support described here
<a href="http://mapserver.org/development/rfc/ms-rfc-79.html">http://mapserver.org/development/rfc/ms-rfc-79.html</a> be relevant? One could create a mask around features you don&#8217;t want covered and reference that in the layers with labels. Problem is you might
 omit features to when you really just want to omit labels.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Steve<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> mapserver-users-bounces@lists.osgeo.org [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Matt McClelland<br>
<b>Sent:</b> Thursday, March 22, 2012 10:03 PM<br>
<b>To:</b> Brent Fraser<br>
<b>Cc:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> Re: [mapserver-users] Avoid labels over particular lines<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I love this idea<br>
Maybe the ability to give a feature priority level of 'label avoidance'<br>
So features like Contours (that may cover a map) can be given a low priority,<br>
but features like main roads and points of interest might be given a high priority so they are always visible.<br>
<br>
(I did play with rendering some of these items after the label cache, but that just meant the labels where now covered by the feature)<br>
<br>
This sounds like a lot of work, but I don't know??<br>
<br clear="all">
Matt&nbsp; :)<br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal">On Fri, Mar 23, 2012 at 1:16 PM, Brent Fraser &lt;<a href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a>&gt; wrote:<o:p></o:p></p>
<p class="MsoNormal">Steve,<br>
<br>
&nbsp;I wonder if it would be possible/economical to extend the label cache to have some kind of feature density &quot;map&quot;/weighted mask to help in determining a preferred label location...<br>
<br>
Best Regards,<br>
Brent Fraser<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
<br>
<br>
On 3/22/2012 6:19 PM, Stephen Woodbridge wrote:<o:p></o:p></p>
<p class="MsoNormal">On 3/22/2012 8:09 PM, Matt McClelland wrote:<o:p></o:p></p>
<p class="MsoNormal">Hi All<br>
<br>
Is there a way in mapserver (6.0) to prevent labels appearing over a map<br>
feature?<br>
<br>
I have a highway and I want to prevent labels (town and other names from<br>
other layers) sitting over the highway.<br>
I guess something like Buffer in labels.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
No, when you go to process a label it knows nothing about what features have been rendered. I guess in theory you could add all the features to the label cache. I guessing that to do this you would need some keyword at the LAYER level to indicate that these
 features need to be added to the label cache, but nothing exists today that would do this.<br>
<br>
You might want to open a ticket for an enhancement and paste the cotent of your message and my response above into it.<br>
<br>
-Steve W<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></p>
<p class="MsoNormal"><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>