<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>

<META content="MSHTML 6.00.6000.16981" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>Hi Tonton and Carlos,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010></SPAN></FONT><FONT face=Arial color=#0000ff 
size=2><SPAN class=686030723-06062010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>You can use an OGR connection to remove decimal points 
for labelling. I think you need GDAL 1.6 or later.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>For example with a shapefile called test.shp with a 
field, testfld1, you can do the following</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>LAYER</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>   ..</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>   CONNECTIONTYPE OGR</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>   CONNECTION "test.shp"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>   DATA "select CAST(testfld1 AS INTEGER (4)) 
from test"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>   ..</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>   CLASS</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>       
...</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>       TEXT 
([testfld1)]</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>       
LABEL</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>        
..</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>       
END</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>   END</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>END</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>Kathleen</SPAN></FONT></DIV><FONT face=Arial 
color=#0000ff size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mapserver-users-bounces@lists.osgeo.org 
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Carlos 
Ruiz<BR><B>Sent:</B> Saturday, 5 June 2010 1:05 AM<BR><B>To:</B> Tonton; 
mapserver-users@lists.osgeo.org<BR><B>Subject:</B> Re: [mapserver-users] numeric 
label without decimal ?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV 
style="FONT-SIZE: 10pt; FONT-FAMILY: arial,helvetica,sans-serif">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-SIZE: 10pt; FONT-FAMILY: arial,helvetica,sans-serif"><BR 
style="FONT-WEIGHT: bold; COLOR: rgb(96,0,191)">
<DIV 
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"><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>