<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">Tonton,<br><br>This is because de data domain, there's no way to apply a format with the LABEL tag, you have to change the <br>data domain from the data source directly<br><br><div style="font-weight: bold; color: rgb(0, 96, 191);">IC Carlos Ruiz</div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br style="font-weight: bold; color: rgb(96, 0, 191);"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Tonton <to.tonton@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> mapserver-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, June 4, 2010 8:05:30 AM<br><b><span style="font-weight: bold;">Subject:</span></b>
[mapserver-users] numeric label without decimal ?<br></font><br>
hello <br><br>i use shapefile to render a map in wms layer. <br>it is working good but ... <br><br>the column i use TXT have number ( 12 30 255 etc...) <br><br>so i see with 10 digits after the point ( 12.00000000 30.000000000 255.000000000 etc...) <br>
<br>if anybody know how to set that my label was text or integer and not decimal ? i haven't found it in mapserver documentation <br><br>Tonton <br><br>next the layer <br><br>LAYER<br> NAME "LabelParcelle.shp"<br>
DATA "LabelParcelle.shp"<br> TYPE POINT<br> DEBUG 5<br> DUMP TRUE<br> LABELCACHE ON<br> METADATA<br> WMS_TITLE "LabelParcelle.shp"<br> "WMS_SRS" "EPSG:27572"<br>
<br> WFS_TITLE "LabelParcelle.shp"<br> "WFS_SRS" "EPSG:27572"<br> END<br> LABELITEM TXT<br>CLASS<br>NAME "LabelParcelle.shp"<br> STYLE<br> SYMBOL 7<br>
SIZE 2<br> OUTLINECOLOR 0 0 0<br> COLOR 0 0 0<br> END<br> LABEL<br> TYPE BITMAP<br> POSITION AUTO<br> SIZE MEDIUM<br> COLOR 0 0 0<br> End #LABEL<br> END<br>
END #Layer<br><br>
</div></div>
</div><br>
</body></html>