Hi, Thanks for your reply, Andrea. However, using the autoWrap vendor option seems to split all my labels at a certain point, while I need it to split where the space occurs and not elsewhere.
Looking forward to further advice. Regards, Louise Bates GIS consultant, Delivery Team Dotted Eyes Ltd, Hanbury Court, Harris Business Park, Bromsgrove, B60 4JJ Direct phone: +44 (0)1527 556934 Email: [email protected] -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Andrea Aime Sent: 25 August 2011 09:22 To: Louise Bates Cc: [email protected] Subject: Re: [Geoserver-users] Splitting labels onto a new line in an SLD On Thu, Aug 25, 2011 at 10:10 AM, Louise Bates <[email protected]> wrote: > 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. http://docs.geoserver.org/latest/en/user/styling/sld-reference/labeling.html#autowrap It will work only on labels that do not follow a line. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- Incoming e-mail scanned by Altman Technologies 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 (www.dottedeyes.com/events) Data sharing simplified for staff and contractors How the National Trust saved 300 man hours in 6 weeks (www.dottedeyes.com/cp) Buy support or register for training online Visit our website - www.dottedeyes.com 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: [email protected] 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
