[mapserver-users] LABEL-formatting options

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Wed Mar 10 06:35:57 PST 2010


Stephan, 

Since there isn't a MapServer solution until 6.0, a work around could be a python/php/other language script to populate a new column with a lower precision value.  It wouldn't be that hard to write.

David.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR)
Sent: Tuesday, March 09, 2010 10:36 PM
To: Stephan Holl; mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] LABEL-formatting options

Hi Stephan: This is an increasingly asked question but at the moment I don't have a good solution or workaround, it's just not 
possible at the moment. There's a ticket already filed on the subject and it will be addressed in 6.0.

Are you in a position where you could apply a patch to deal with the problem if one were available?

Steve

________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephan Holl [stephan.holl at intevation.de]
Sent: Tuesday, March 09, 2010 7:54 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] LABEL-formatting options

Hello mapservers,

we are using MapServer for visualizing shapefiles with double entries
inside.

Mainly this are contour-lines from waterdepth. The double values have
32 decimal places and mapserver tries to render them _all_ along a
contourline.
This does not look nice...

Is there an option to trim the values with a dedicated
mapfile-parameter, e.g. where a prinft-syntax can be used to format the
values?

The shapefiles are generated automatically so adding another column with
trunc()ed or round()ed values is no option.

Are there any options to format label-values/strings? I have not found
anything in the docs.

TIA

        Stephan

--
Stephan Holl <stephan.holl at intevation.de> | Tel.: +49 (0)541-33 508 3663
Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG Osnabrück - HR B 18998
Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list