Hi all!
I am trying to reduplicate the "Showing one Way" example found in Andrea's
wonderful "GeoServer Cartographic Rendering" presentation [1] from FOSS4G
2010 in code using GeoTools StyleFactory (ultimately for GeoScript). When I
run this code snippet:
TextSymbolizer text = styleFactory.createTextSymbolizer();
text.setFont(styleFactory.createFont(filterFactory.literal("Lucida Sans"),
filterFactory.literal("normal"), filterFactory.literal("bold"),
filterFactory.literal("10")));
text.setLabel(filterFactory.literal("→"));
I get an image with labels '→' instead of arrows (see attached
image line_with_arrows.png). When I write this Style to SLD I see that the
'&' has been escaped:
<sld:TextSymbolizer>
<sld:Label>
<ogc:Literal>&amp;#x2192;</ogc:Literal>
</sld:Label>
</sld:TextSymbolizer>
When I change the SLD to <ogc:Literal>&#x2192;</ogc:Literal> and
regenerate my image I get the correct result (see attached image
line_with_arrow_from_sld.png). I am missing something or is this a bug? If
it's a bug I can file an issue with JIRA.
Thanks,
Jared
[1] http://2010.foss4g.org/presentations/3588.pdf
http://osgeo-org.1803224.n2.nabble.com/file/n6694148/line_with_arrow_from_sld.png
line_with_arrow_from_sld.png
http://osgeo-org.1803224.n2.nabble.com/file/n6694148/line_with_arrows.png
line_with_arrows.png
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/TextSymbolizer-and-one-way-arrows-tp6694148p6694148.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users