Re: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes?

2012-11-25 Thread Lime, Steve D (DNR)
mapserver-users-boun...@lists.osgeo.org] on behalf of Astrid Emde [astrid.e...@wheregroup.com] Sent: Friday, November 23, 2012 4:04 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes? Am 23.11.2012

Re: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes?

2012-11-23 Thread Jeff McKenna
On 12-11-23 10:25 AM, Astrid Emde wrote: > Hi Lars, > > again - thanks for your answer. I got a solution. > > CONNECTIONTYPE OGR > CONNECTION "double_test.shp" > DATA "Select *, J_2010_201*1 as newcolumn from double_test" > > The function round(numbercolumn,2) was not found but with multiplicat

Re: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes?

2012-11-23 Thread Astrid Emde
Am 23.11.2012 14:30, schrieb Lars Lingner: >> Hi Lars, >> >> thanks for the information! >> >> It works fine for the label. >> >> Before I defined LABELITEM mycolumn and got the long notation: >> 2.540e+000 >> >> with definition TEXT mycolumn the label looks fine (without using any >> func

Re: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes?

2012-11-23 Thread Lars Lingner
> Hi Lars, > > thanks for the information! > > It works fine for the label. > > Before I defined LABELITEM mycolumn and got the long notation: > 2.540e+000 > > with definition TEXT mycolumn the label looks fine (without using any > function): 2.54 > > Is there a solution for the query

Re: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes?

2012-11-23 Thread Havard Tveite
According to http://www.mapserver.org/mapfile/class.html TEXT ("Area is: " + tostring([area],"%.2f")) could also be used. round and tostring are documented in http://www.mapserver.org/mapfile/expressions.html round ( n1 , n2 ) tostring ( n1, "Format1" ) HÃ¥vard On 11/23/2012 10:39 AM, Lars

Re: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes?

2012-11-23 Thread Astrid Emde
Am 23.11.2012 10:39, schrieb Lars Lingner: > On 23.11.2012 10:12, Astrid Emde wrote: >> Hello, >> >> I have a shapefile with a column of type double that contains values >> like 2.54 or -2.03. >> >> When I label the geometrie with this column or display this column in >> my infotemplate I get the f

Re: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes?

2012-11-23 Thread Lars Lingner
On 23.11.2012 10:12, Astrid Emde wrote: > Hello, > > I have a shapefile with a column of type double that contains values > like 2.54 or -2.03. > > When I label the geometrie with this column or display this column in > my infotemplate I get the following notation of the values: > 2.540e

[mapserver-users] How can I avoid long notation of double values in label or info template for shapes?

2012-11-23 Thread Astrid Emde
Hello, I have a shapefile with a column of type double that contains values like 2.54 or -2.03. When I label the geometrie with this column or display this column in my infotemplate I get the following notation of the values: 2.540e+000 -2.030e+000 If there a way to tell MapSer