Thursday 15 March 2012

GeoServer and SLD : How to get rid of the newline after using numberFormat -



GeoServer and SLD : How to get rid of the newline after using numberFormat -

using geoserver , sld trying utilize number format , concatenation getting newline generated after number format:

<textsymbolizer> <label> <ogc:function name="numberformat"> <ogc:literal>###,###,###</ogc:literal> <ogc:propertyname>areasqft</ogc:propertyname> </ogc:function> <ogc:literal>sq.ft.</ogc:literal> ...

displays:

8,735 sq. ft.

i label display such as:

8,735 sq. ft.

i tried using concatenate fuction:

<textsymbolizer> <label> <ogc:function name="concatenate"> <ogc:function name="numberformat"> <ogc:literal>###,###,###</ogc:literal> <ogc:propertyname>areasqft</ogc:propertyname> </ogc:function> <ogc:literal>sq.ft.</ogc:literal> </ogc:function> ...

but still getting newline:

8,735 sq. ft.

any help appreciated. before hand.

i tried first styling poly_landmarks illustration in geoserver using land property label , number formatting. desired behavior on development version. perhaps can test newer version of geoserver.

geoserver sld

No comments:

Post a Comment