[mapserver-users] LABEL POSITION - Numeric or String from a database
Erik Gustafson
gustafson.erik at gmail.com
Thu Nov 25 13:20:46 PST 2010
On Sun, Nov 21, 2010 at 11:21 AM, Donald Kerr <donald.kerr at dkerr.co.uk> wrote:
> 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 "101" i.e. instead of "POSITION
> UL" I use "POSITION 101" but that doesn't work.
>
> I have also tried replacing "POSITION UL" with text values from a database
> i.e. "POSITION [AnchorPositionTxt]" where "AnchorPositionTxt" 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
Hello,
I have an experimental patch on revision 10568: http://pastebin.com/GNu4Eeyt
Should be enough to allow for binding text position from feature
attribute. Both constants 101,102 etc and strings ul, uc, ul etc
should work. I've used this patch on data from PostGIS.
/Erik
More information about the MapServer-users
mailing list