[mapserver-users] LABEL - POSITION and FONT Calculations
Steve Lime
Steve.Lime at dnr.state.mn.us
Mon Dec 29 09:41:46 PST 2008
Hi Donald:
> The question is: Is it possible to take the values from the database and
> convert them for use within the LABEL e.g. 2 = ul = "POSITION ul" or 5 = uc
> = "POSITION uc"?
At the moment POSITION is not bindable. If you file a bug then that can be changed. Once changed
you could use a PostgreSQL case statement to map your position codes to MapServer values (e.g.
1 => UL or whatever).
> I would also like to be able to change the Font based on [fontnumber] from
> the database e.g. 0 = Arial = "FONT arial" or 1 = Times = "FONT times"
Fonts are bindable so you'd just need a case statement to map your codes to font names that
MapServer recognizes.
Steve
More information about the MapServer-users
mailing list