<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Steve L.,<br>
<br>
I was thinking more of a way to avoid certain locations for label
placement. Currently the label cache mechanism "reserves" locations
that already have labels (if I remember correctly), and mapserver
iterates thru the 9 locations to hopefully find one without any
existing labels. My thought was to use that method to create
polygons not of label boxes, but of outlines of feature graphics.
and put those in the label cache (at a much lower priority than the
label boxes perhaps?). In a perfect world, the label would be
placed in an "empty" area., or more likely in an area of a minimal
amount of graphics.<br>
<br>
<pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
<br>
On 3/23/2012 10:24 AM, Lime, Steve D (DNR) wrote:
<blockquote
cite="mid:C549F0496453D842B4DD71AC8188DDC50FFA8A@055-CH1MPN1-043.055d.mgd.msft.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<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]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Might
the layer masking support described here
<a moz-do-not-send="true"
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’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:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Steve<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </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:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</a>]
<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> <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [mapserver-users] Avoid labels over
particular lines<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </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 :)<br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal">On Fri, Mar 23, 2012 at 1:16 PM, Brent
Fraser <<a moz-do-not-send="true"
href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a>>
wrote:<o:p></o:p></p>
<p class="MsoNormal">Steve,<br>
<br>
I wonder if it would be possible/economical to extend the
label cache to have some kind of feature density
"map"/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 moz-do-not-send="true"
href="mailto:mapserver-users@lists.osgeo.org"
target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:mapserver-users@lists.osgeo.org"
target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
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> </o:p></p>
</div>
</blockquote>
</body>
</html>