Is the text positioned ok when you use SLD? The CSS module just generates SLD 
so if it works with hand generated SLD, then perhaps it is not in GeoTools but 
a difference between the SLD.

charles

On Mar 16, 2012, at 9:23 AM, Andrea Aime wrote:

> On Fri, Mar 16, 2012 at 1:57 PM, Chris Haste <cha...@airdata.co.uk> wrote:
>> I may have spoken to soon!
>> 
>> 
>> 
>> Yes, that does give me multiple lines for the label, but it appears to cause
>> an issue with the positioning of that text within a shield.
>> 
>> 
>> 
>> I’m using a square symbol in ‘stretch’ mode for the shield. The shield looks
>> to be the correct size and shape hold the multi-line label but the label is
>> not positioned correctly within the shield, it starts in the center of the
>> shield and then overflows the bottom of the shield.
>> 
>> 
>> 
>> Is this a known issue? Is there away to control (fine tune) the positioning
>> of the text within the shield?
> 
> This may be a bug in the GeoTools labeller, when I implemented shield 
> stretching
> I did not try it out with multiline labels.
> The classes to be fixed are in this package:
> 
> http://svn.osgeo.org/geotools/trunk/modules/library/render/src/main/java/org/geotools/renderer/label/
> 
> Cheers
> Andrea


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to