[mapserver-users] numeric label without decimal ?

Carlos Ruiz boolean10001 at yahoo.com
Fri Jun 4 08:04:33 PDT 2010


Tonton,

This is because de data domain,there's no way to apply a format with the LABEL tag, you have to change the 
data domain from the data source directly


IC Carlos Ruiz



________________________________
From: Tonton <to.tonton at gmail.com>
To: mapserver-users at lists.osgeo.org
Sent: Fri, June 4, 2010 8:05:30 AM
Subject: [mapserver-users] numeric label without decimal ?

hello 

i use shapefile  to render a map in wms layer. 
it is working good but ... 

the  column i use TXT  have number  ( 12 30 255 etc...) 

so i see with 10 digits after the point ( 12.00000000  30.000000000 255.000000000 etc...) 

if anybody know how to set that my label was text or integer and not decimal ? i haven't found it in mapserver documentation 

Tonton 

next the layer 

LAYER
        NAME "LabelParcelle.shp"
        DATA "LabelParcelle.shp"
        TYPE POINT
        DEBUG 5
        DUMP TRUE
        LABELCACHE ON
        METADATA
        WMS_TITLE "LabelParcelle.shp"
        "WMS_SRS" "EPSG:27572"

        WFS_TITLE "LabelParcelle.shp"
        "WFS_SRS" "EPSG:27572"
        END
        LABELITEM TXT
CLASS
NAME "LabelParcelle.shp"
        STYLE
        SYMBOL 7
        SIZE 2
        OUTLINECOLOR 0 0 0
        COLOR 0 0 0
        END
        LABEL
        TYPE BITMAP
        POSITION AUTO
        SIZE MEDIUM
        COLOR 0 0 0
        End #LABEL
        END
END #Layer


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100604/c77b2bef/attachment.htm>


More information about the MapServer-users mailing list