Louise,
You can also try with \n in your label text.
My really long label --> My \n really \long \n label
It will create a line break for every \n
ricardo
2011/8/25 Louise Bates <[email protected]>
> Hi,
>
> Thanks Andrea - I've upgraded the version of Geoserver we were using and
> have now got the autoWrap to work.
>
> 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 13:19
> 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 1:13 PM, Louise Bates
> <[email protected]> wrote:
> > 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.
>
> The current code does split on spaces as far as I know. How old is
> your GeoServer?
>
> 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
>
------------------------------------------------------------------------------
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