Example of problems with the Style Bindings framework
-----------------------------------------------------
Key: GEOT-2369
URL: http://jira.codehaus.org/browse/GEOT-2369
Project: GeoTools
Issue Type: Bug
Components: core styling
Affects Versions: 2.6-M1, 2.5.3
Reporter: Milton Jonathan
Priority: Minor
Attachments: test-sld.zip
This issue contains an attachment with resources for a simple non-exhaustive
test for Style rendering. The attached file contains a single shapefile along
with a corresponding .sld file, for which some problems were seen to occur when
using the SLD bindings framework (i.e., as described in
http://docs.codehaus.org/display/GEOTDOC/SLD+XML+Support). Note that the exact
same shapefile and .sld renders perfectly using the SLDParser/Transformer
scheme.
Results found were:
- basic stroke and fill settings area read OK
- there are problems with relative URL paths (don't know if it really should
only read absolute paths, but with SLDParser things like <OnlineResource
xlink:type="simple" xlink:href="myimage.svg"/> work)
- that svg resource is used for a GraphicFill, but even after fixing the URL to
an absolute path, the resulting fill is a plain grey one, ignoring the
GraphicFill altogether
- there are problems with labeling; the SLD contains a rule like this:
<Rule> <Title>Other</Title>
<TextSymbolizer>
<Label>
<ogc:PropertyName>NAME</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-style">normal</CssParameter>
</Font>
</TextSymbolizer>
</Rule>
. So, first, this didn't work because the binding for CssParameter expects
all font parameters (family, style, weight, size) to be present - if anything
is missing, it throws a NullPointerException at SLDFontBinding.parse
. Second, even after filling in all parameters no labels are displayed (the
same happens if we eliminate <Font> altogether)
--
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
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel