Issue Type: Bug Bug
Affects Versions: 8.3
Assignee: Andrea Aime
Attachments: single_line.png, two_lines.png
Components: render
Created: 07/Nov/12 1:21 PM
Description:

when adding a graphic element around a text label, which would accommodate the text itself, the graphic element is mis-placed if the text label has a new line in it.

see the two attached screenshots, and the following SLD snippets:

the following snippet creates a correct bounding box around the element:

<sld:TextSymbolizer uom="http://www.opengeospatial.org/se/units/metre">
<sld:Label>
<ogc:PropertyName>name</ogc:PropertyName>
<ogc:PropertyName>navaid_ident</ogc:PropertyName>
<ogc:PropertyName>navaid_vor</ogc:PropertyName>
</sld:Label>

...

<sld:Graphic>
<sld:Mark>
<sld:WellKnownName>square</sld:WellKnownName>
<sld:Stroke>
<sld:CssParameter name="stroke">#000000</sld:CssParameter>
</sld:Stroke>
</sld:Mark>
<sld:Size>1000</sld:Size>
</sld:Graphic>
<sld:VendorOption name="graphic-resize">stretch</sld:VendorOption>
<sld:VendorOption name="graphic-margin">4</sld:VendorOption>
</sld:TextSymbolizer>

but using the following label will not:

<sld:Label>
<ogc:PropertyName>name</ogc:PropertyName><![CDATA[
]]><ogc:PropertyName>navaid_ident</ogc:PropertyName>
<ogc:PropertyName>navaid_vor</ogc:PropertyName>
</sld:Label>

Environment: geoserver, SUN Java 1.6.0_35
Project: GeoTools
Priority: Minor Minor
Reporter: Ákos Maróy
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to