<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Brent,<br>
<br>
I think you're getting it at the centre because you have the label
with POSITION CC (therefore always centred!)<br>
<br>
Christy<br>
<br>
On 05/26/2011 01:59 PM, Brent Fraser wrote:
<blockquote cite="mid:4DDE94F2.1080005@geoanalytic.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Should we change the documentation on STYLE -> GEOMTRANSFORM
-> labelpnt:<br>
<ul class="simple">
<li>labelpnt generates a point with its center at the middle of
the bounding rectangle of the text.</li>
</ul>
<br>
or is the position generated a bug (or am I using it
incorrectly)? Have a look at the blue dot in the attached image.<br>
<br>
<tt><br>
CLASS # Mountain<br>
NAME 'Mountain'<br>
EXPRESSION ([CONCISCODE]=280)<br>
STYLE # </tt><tt>------ </tt><tt>Green Cross </tt><tt>------
</tt><br>
<tt> SYMBOL 'CROSS1'<br>
SIZE 8<br>
WIDTH 0.5<br>
COLOR 0 255 0 <br>
END<br>
STYLE # </tt><tt>------ </tt><tt>Yellow Circle </tt><tt>------
</tt><br>
<tt> GEOMTRANSFORM (labelpoint([shape]))<br>
SYMBOL 'CIRCLE'<br>
SIZE 5 <br>
OUTLINECOLOR 255 255 0<br>
END<br>
LABEL <br>
STYLE # </tt><tt>------ </tt><tt> Red Box </tt><tt>------
</tt><br>
<tt> GEOMTRANSFORM labelpoly<br>
OUTLINECOLOR 255 0 0<br>
END # <br>
STYLE # ------ Blue Dot ------ position OK?<br>
GEOMTRANSFORM labelpnt<br>
SYMBOL 'CIRCLE'<br>
SIZE 2<br>
COLOR 0 0 255 <br>
END # <br>
FONT "trebuc"<br>
TYPE TRUETYPE<br>
POSITION CC<br>
ALIGN CENTER<br>
WRAP ' '<br>
SIZE 6<br>
BUFFER 1<br>
COLOR 0 0 0<br>
ANGLE 0<br>
PARTIALS FALSE<br>
ANTIALIAS TRUE<br>
#MINDISTANCE 250<br>
#MINFEATURESIZE 10<br>
END <br>
END</tt><br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Best Regards,
Brent Fraser</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mapserver-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a>
</pre>
</blockquote>
</body>
</html>