From: Miles J. <Mil...@aa...> - 2009-10-30 06:36:55
|
Hi, Now I'm having a bit of a scuff with using the numberFormat function within a TextSymbolizer, with Geoserver 2.0. If I use the following to show a whole number with no decimal places, I get no labels: <Label> <ogc:Function name="numberFormat"> <ogc:PropertyName>elevation</ogc:PropertyName> <ogc:Literal>#</ogc:Literal> </ogc:Function> </Label> If I use <ogc:Literal>0</ogc:Literal> instead then I get labels but a no formatting takes place at all. Should I be using something in place of the #? I also tried #.# and 0.0 with similar results. I can use the Floor function for now - it works but still displays with one decimal place. That will do for now! Cheers, Miles Jordan Applications Developer Australian Antarctic Division ___________________________________________________________________________ Australian Antarctic Division - Commonwealth of Australia IMPORTANT: This transmission is intended for the addressee only. If you are not the intended recipient, you are notified that use or dissemination of this communication is strictly prohibited by Commonwealth law. If you have received this transmission in error, please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and DELETE the message. Visit our web site at http://www.antarctica.gov.au/ ___________________________________________________________________________ |