Found a workaround:
Two TextSymbolizers - first with underscores "_" characters, and the other
one on top with the label field.
My next question is - how to use a function, which calculates the lenght of
the string and places equal number of "_" in a Label tag ?

In general - is there a documentation on all existing functions (like
PropertyIsEqualTo etc.) somewhere?
Maybe a document or a web page?



2011/6/23 Andrea Aime <[email protected]>

> On Thu, Jun 23, 2011 at 10:41 AM, Gis Mage <[email protected]> wrote:
>
>> Hi, list!
>>
>> Is there any way to show underlined labels with SLD?
>> Or maybe there is some kind of CSS hack?
>>
>
> SLD does not have such feature, CSS is translated in SLD before rendering
> so it does not have it either.
>
> The rendering subsystem in Java can underline (and also strikethrough)
> text, so it would be possible to implement it.
> The simplest way would be to add a new VendorOption for that, and then
> change the
> rendering subsystem to use it.
>
> If you are interested in doing it yourself I can give you pointers in the
> GeoTools code that handles label painting
>
> 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
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to