<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Hallo Donald,<BR>
<BR>
you can define a layer with so many classes how are your possible label positions and filter each class with the value of the attribute &quot;AnchorPositionTxt&quot;<BR>
<BR>
i.e:<BR>
<BR>
LAYER<BR>
<BR>
&nbsp; NAME &quot;layer&quot;<BR>
&nbsp; ...<BR>
&nbsp; ...<BR>
&nbsp; CLASSITEM &quot;AnchorPositionTxt&quot;<BR>
&nbsp; LABELITEM &quot;name&quot;<BR>
&nbsp; CLASS<BR>
&nbsp;&nbsp;&nbsp; EXPRESSION &quot;ul&quot;<BR>
&nbsp;&nbsp;&nbsp; LABEL<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION ul<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<BR>
&nbsp;&nbsp;&nbsp; END<BR>
&nbsp; END<BR>
&nbsp; CLASS<BR>
&nbsp;&nbsp;&nbsp; EXPRESSION &quot;lr&quot;<BR>
&nbsp;&nbsp;&nbsp; LABEL<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION lr<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<BR>
&nbsp;&nbsp;&nbsp; END<BR>
&nbsp; END<BR>
END<BR>
<BR>
Cheers,<BR>
Tommaso<BR>
<BR>
On Sun, 2010-11-21 at 10:21 +0000, Donald Kerr wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi List,

I am trying to change a LABEL's POSITION by using an integer without
success.

As far as I can see, the LABEL's POSITION can be any one of the following
constants: enum MS_POSITIONS_ENUM {MS_UL=101, MS_LR, MS_UR, MS_LL, MS_CR,
MS_CL,
MS_UC, MS_LC, MS_CC, MS_AUTO, MS_XY , MS_FOLLOW};

I was assuming that I can replace UL with &quot;101&quot; i.e. instead of &quot;POSITION
UL&quot; I use &quot;POSITION 101&quot; but that doesn't work.

I have also tried replacing &quot;POSITION UL&quot; with text values from a database
i.e. &quot;POSITION [AnchorPositionTxt]&quot; where &quot;AnchorPositionTxt&quot; is a string
'UL' but, again, that doesn't work.

Is there a way to set this value dynamically from the database with either
numbers or strings ('UL', LR, etc...)?

Many thanks.

Regards,

Donald Kerr

_______________________________________________
mapserver-users mailing list
<A HREF="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A>
<A HREF="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A>
</PRE>
</BLOCKQUOTE>
<BR>
<BR>
</BODY>
</HTML>