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/
___________________________________________________________________________

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to