<!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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;&nbsp; ..</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>&nbsp;&nbsp; CONNECTIONTYPE OGR</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>&nbsp;&nbsp; CONNECTION "test.shp"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>&nbsp;&nbsp; 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>&nbsp;&nbsp; ..</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>&nbsp;&nbsp; CLASS</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
...</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEXT 
([testfld1)]</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LABEL</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
..</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
END</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=686030723-06062010>&nbsp;&nbsp; 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>&nbsp;</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>&nbsp;</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 
&lt;to.tonton@gmail.com&gt;<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&nbsp; to render a map in wms layer. <BR>it is working good but ... 
<BR><BR>the&nbsp; column i use TXT&nbsp; have number&nbsp; ( 12 30 255 etc...) 
<BR><BR>so i see with 10 digits after the point ( 12.00000000&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 
"LabelParcelle.shp"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA 
"LabelParcelle.shp"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE 
POINT<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEBUG 
5<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DUMP 
TRUE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABELCACHE 
ON<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
METADATA<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_TITLE 
"LabelParcelle.shp"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "WMS_SRS" 
"EPSG:27572"<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WFS_TITLE 
"LabelParcelle.shp"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "WFS_SRS" 
"EPSG:27572"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
END<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABELITEM TXT<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