You can also use CDATA to denote spaces and line feeds you want to retain, e.g.:
http://osgeo-org.1803224.n2.nabble.com/SLD-Label-can-use-two-Fields-for-labeling-td6105090.html
Steve
Stephen Mather
Geographic Information Systems (GIS) Manager
(216) 635-3243
svm@anonymised.com
clevelandmetroparks.com
From: Ricardo Bayley [mailto:ricardo.bayley@anonymised.com]
Sent: Monday, August 29, 2011 8:20 AM
To: Alison Thomson
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Splitting labels onto a new line in an SLD
Hi Alison,
You can try with line breaks \n in your label text. Not sure how to colour differently each line.
My really long label → My \n really \long \n label
It will create a line break for every \n
rb
2011/8/23 Alison Thomson <alison.thomson@anonymised.com>
Hi,
Is it possible to split apart a label where a space occurs and replace the space with a carriage return in an SLD file. For example the text string would be Red Green and this should appear like this:
Red
Green
We have tried to use the strReplace but with limited success.
Any help on this will be very much appreciated.
Alison
Simplify. Automate. Integrate.
Dotted Eyes
Hanbury Court, Harris Business Park, Stoke Prior, Bromsgrove, B60 4JJ, UK
Join us at seminars and exhibitions
View our event calendar
Data sharing simplified for staff and contractors
How the National Trust saved 300 man hours in 6 weeks
Buy support or register for training online
Visit our website
ResponseMX dynamic web maps: www.dottedeyes.com/rmx
Spatial data loading: www.dottedeyes.com/spatial
Ready-to-use digital maps & data: www.dottedeyes.com/data
For a sales enquiry email: sales@anonymised.com
For technical support login to: http://dottedeyes.helpserve.com
EMC VNX: the world’s simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users