Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.3.0 RC4.SC1
-
Fix Version/s: None
-
Component/s: WMS
-
Labels:None
-
Number of attachments :
Description
This is a patch to the 1.3.0RC4.SC1 geotools subversion tag, which enables "Label Shields" in the SLD renderer.
Here are a few examples.
This textsymbolizer:
<TextSymbolizer>
<Label>
<PropertyName xmlns="http://www.opengis.net/ogc/filter">RT_NUMBER</PropertyName>
</Label>
<Fill>
<CssParameter name="fill">#000000</CssParameter>
q</Fill>
<Font>
<CssParameter name="font-family">/usr/lib/j2sdk1.5-sun/jre/lib/fonts/LucidaSansDemiBold.ttf</CssParameter>
<CssParameter name="font-weight">medium</CssParameter>
<CssParameter name="font-style">bold</CssParameter>
<CssParameter name="font-size">18</CssParameter>
</Font>
<Graphic>
<Mark>
<WellKnownName>circle</WellKnownName>
<Fill>
<CssParameter name="fill">#BBBBBB</CssParameter>
</Fill>
</Mark>
<Opacity>.5</Opacity>
<Size>30</Size>
</Graphic>
</TextSymbolizer>
will produce the standard labeling, but with a gray circle of radius 30 pixels UNDERNEATH the label.
The following textsymbolizer
<TextSymbolizer>
<Label>
<PropertyName xmlns="http://www.opengis.net/ogc/filter">RT_NUMBER</PropertyName>
</Label>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
</Fill>
<Font>
<CssParameter name="font-family">/usr/lib/j2sdk1.5-sun/jre/lib/fonts/LucidaSansDemiBold.ttf</CssParameter>
<CssParameter name="font-weight">medium</CssParameter>
<CssParameter name="font-style">bold</CssParameter>
<CssParameter name="font-size">18</CssParameter>
</Font>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:href="http://<myip>/~sfarber/images/Interstate_shield.gif"/>
<Format>image/gif</Format>
</ExternalGraphic>
<Size>30</Size>
</Graphic>
</TextSymbolizer>
will produce the standard labeling, but with a 30x30pixel scaled instance of the graphic at the referenced URL UNDERNEATH the label.
Patch application was voted down by geotools.
There has been some recent talk about it using TextSymbolizer2, but the parser doesnt make textSymbolizer2's and the renderer doesnt know anything about them.