Add support for block background instead of radial halo to TextSymbolizer
-------------------------------------------------------------------------
Key: GEOT-1091
URL: http://jira.codehaus.org/browse/GEOT-1091
Project: GeoTools
Issue Type: Improvement
Affects Versions: 2.3.0, 2.2.2
Reporter: Andrea Aime
Fix For: 2.4.M0
>From an old SLD spec:
------------------------------------------------------------------------------------------------------------------------------
ELEMENT Halo (
(Color | GraphicFill)?,
Opacity?,
(Radius | Block)? ) >
<!ELEMENT Radius (#PCDATA) >
<!ELEMENT Block (#PCDATA) >
Either a Radius or a Block halo type can be used. The radius is computed from
the outside
edge of the font glyphs (or inside edge of "holes" in the glyphs). The default
is a Radius of 1.0
(pixels), but if no Halo is selected in a containing TextSymbol, then no halo
will be rendered.
The default is a solid-white (Color "#FFFFFF") opaque halo.
The Radius element gives the absolute size of a halo radius in pixels encoded
as a floating-point
number. The radius is taken from the outside edge of a font glyph to extend the
area of coverage
of the glyph. The halo of a text label is considered to be a single shape. The
glyph's fill is
plotted on top of the halo. The default radius is one pixel. Negative values
are not allowed.
The Block element gives the absolute size of a block extension in pixels
encoded as a floatingpoint
number. This parameter is similar to the Radius parameter except that this is
applied to
the bounding box of a label of a font with square corners. Whether the bounding
box is defined
by the exact label or by the font in general is system- and font-dependent. The
effect is a block
background. The default block-background extension is 0 pixels (beyond the
bounding box).
Negative values are not allowed.
--------------------------------------------------------------------------------------------------------------------------
If I can add my own bit, I would like to have rounded rectangles as well, they
do look better
on a map than standard rectangles. Maybe as an extra parameter RoundedBlock :-p
Also, to make these useful in Geoserver, they should be implemented at least in
geotools 2.3.x
so that Geoserver 1.5.x can use them, otherwise the thing will be procastinated
to geoserver
1.6 which won't see the light before mid/end February
--
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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel