[mapserver-users] add string before a label
Christy Nieman
cnieman at dmsolutions.ca
Mon May 17 05:33:10 PDT 2010
Hi,
You can use the TEXT parameter:
CLASS
...
TEXT (surface is [TXT])
LABEL
...
END
END
Where [TXT] is the attribute field from your data. You can also use
this method to combine two attributes into the label.
Christy
On 05/17/2010 08:22 AM, Tonton wrote:
>
> hello
>
> i use shapefile with mapserver in a column there a label but i hope
> add some text like "surface is" or "number of foo :" before the value
> in the shape file column..
>
> did someone nknows how to doing that ?
>
> if my column name TXT where i set in label the string before ?
>
> LABELITEM TXT
> CLASS
> NAME "LabelParcelle"
> STYLE
> SYMBOL 7
> SIZE 3
> OUTLINECOLOR 255 0 0
> COLOR 255 0 0
> END
> LABEL
> TYPE BITMAP
> SIZE MEDIUM
> COLOR 0 0 0
> End #LABEL
> END
>
>
> thanks
> Tonton
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100517/9b12f586/attachment.htm>
More information about the MapServer-users
mailing list