Distinction between static and dynamic styles in SLDStyleFactory
----------------------------------------------------------------
Key: GEOT-1860
URL: http://jira.codehaus.org/browse/GEOT-1860
Project: GeoTools
Issue Type: Bug
Components: core styling
Affects Versions: 2.5.0
Environment: Netbeans 6.1
Reporter: Theuns Heydenrych
The software does not distinct correctly between dynamic ans static styles in
the SLDStyleFactory in the Style2D createStyle(Object drawMe, Symbolizer
symbolizer, Range scaleRange) method.
In the following code , the StyleAttributeExtractorTruncated extends the
StyleAttributeExtractor who again extends the FilterAttributeExtractor that
have a method getAttributeNameSet();
The set of attributtenames is not populated at all , with the result that the
style is seen as static and not dynamic.
if (dynamicSymbolizers.containsKey(key)) {
return style;
} else {
// lets see if it's static or dynamic
StyleAttributeExtractorTruncated sae = new
StyleAttributeExtractorTruncated();
sae.visit(symbolizer);
Set nameSet = sae.getAttributeNameSet();
if ((nameSet == null) || (nameSet.size() == 0)) {
staticSymbolizers.put(key, style);
} else {
dynamicSymbolizers.put(key, Boolean.TRUE);
}
}
--
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
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel