On Sat, May 5, 2012 at 3:42 PM, YC Nyon <[email protected]> wrote:
> **
> hi,
>
> use the SLD below, i can get multi-line labels. However if the label name
> has characters other than alphabets like numbers, commas or open/close
> inverted commas, it will automaticaly goto the the next line. Am i
> missing some parameters ? Examples
>
> KS
> 9
>
> OR
>
>
> Fultentown
> (
> Phase
> 2
> )
>
>
>
> <VendorOption name="autoWrap">10</VendorOption>
>
This auto-wrap is awfully small, only 10 pixels? :-)
In any case, in order to do multi-language char wrappring we use the
built-in Java facilities to decide where we can split the words to
respect the auto-wrapping (which, in your case, is as large as a single
char...).
I guess the java built-in mechanism decides that ( and ) are good chars
to break a word on (a space obviously is)
That said, you probably want to have a larger auto-wrap value.
>
> <VendorOption name="spaceAround">20</VendorOption>
> <VendorOption name="labelObstacle">true</VendorOption>
>
The labelObstacle vendor option is meaningful only for point symbolizers
(and to a lesser extent for line and polygon symbolizers)
a label is always a "label obstacle". You probaly want to remove it
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
mob: +39 339 8844549
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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users