Patch to add Label Shields to geotools literenderer
---------------------------------------------------
Key: GEOS-434
URL: http://jira.codehaus.org/browse/GEOS-434
Project: GeoServer
Type: New Feature
Components: WMS
Versions: 1.3.0 RC4.SC1
Reporter: Saul Farber
Assigned to: Gabriel Roldán
Priority: Minor
Attachments: labelshields-geoserver-1.3.0.RC4.SC1.patch
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[ http://jira.codehaus.org/browse/GEOS-434?page=all ]
Jody Garnett reopened GEOS-434:
-------------------------------
Assign To: dblasby (was: Gabriel Roldán)
Suel we seem to have a miss understanding, I voted -1 because geotools was not ready (did not have a convention in place) to support patches that extended functionality defined by a standard. -1 means not yet but I will help, and in response to your patch we have set up geotools to allow for this.
I would love to see your patch applied to 2.2.x and included in a future geoserver release. The part we needed to do is completed and I would now vote +1. (The only negative vote is +0).
Jody
Patch to add Label Shields to geotools literenderer
---------------------------------------------------
Key: GEOS-434
URL: http://jira.codehaus.org/browse/GEOS-434
Project: GeoServer
Type: New Feature
Components: WMS
Versions: 1.3.0 RC4.SC1
Reporter: Saul Farber
Assignee: dblasby
Priority: Minor
Fix For: 1.4.M0
Attachments: labelshields-geoserver-1.3.0.RC4.SC1.patch, labelshields-geoserver-2.1-r17645.patch, labelshields-r18876.patch
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira