Shapefile renderer might stop drawing at all if the query sports a filter or a
sld using the geometry column
------------------------------------------------------------------------------------------------------------
Key: GEOT-1672
URL: http://jira.codehaus.org/browse/GEOT-1672
Project: GeoTools
Issue Type: Bug
Components: ext shapefilerender
Affects Versions: 2.4-RC1
Reporter: Andrea Aime
Fix For: 2.4-RC1, 2.5-M1
Shapefile renderer tries to build minimal features like in streaming renderer.
Unforunately there is a strong assumption in the feature building code: the
geometry column is the last one.
Normally that happens, because findStyleAttributes extracts only non geometric
attributes and the geometry will be added last creating the feature type.
Unfortunately if the sld or the filter use the geometry, this assumption is
broken, and the geometry might end up not being the last attribute in the new
feature type -> this will break createFeature, which will throw an exception.
I've put a band aid on both 2.4.x and trunk for this.. not the most elegant
patch, but anyways, I hope shapefile renderer goes the way of the dodo soon...
(streaming renderer works fine in this case)
--
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel