Style with FIDFilter + MapLayer(FeatureSource) make the ShapefileRenderer go
crazy
----------------------------------------------------------------------------------
Key: GEOT-2787
URL: http://jira.codehaus.org/browse/GEOT-2787
Project: GeoTools
Issue Type: Bug
Components: core styling, ext shapefilerender
Affects Versions: 2.6-RC1
Environment: Java 1.6_16, Ubuntu
Reporter: Stefan Alfons Krüger
Assignee: Andrea Aime
Fix For: 2.6.0
Attachments: junitShapefileRendererFIDFilterFeatureSourcebroken.diff
When rendering different bounds of an unchanged MapContext/MapLayer, with the
same unchanged Renderer and the same unchanged Style (which contains a
FidFilter!), different/random/wrong features fulfill the FidFiilter! With every
new bound to rendered, other features fulfill the filter.
What i learned while writing this JUnit test:
It only happens if the DefaultMapLayer has been created with a FeatureSource
(not a FeatureCollection) in combination with ShapefileRenderer. With
StramingRenderer it works.
Also works with ShapefileRenderer, if the MapLayer has been created with a
FeatureCollection. Maybe this already rings a bell where the bug might be?
It happens with lines, points and polygons.
The test can be run interactively or not. As it is a pretty complex test, maybe
we should include it for both Renderers and the alternative ways to create the
MapLayer.
I have no idea how to fix this bug. I hope the JUnit test helps. I am in IRC
and ready for help/testing all day (friday) tomorrow...
One more note: I couldn'd show the bug with lakes.shp, so please
"svn cp ./demo/shapefileviewer/src/main/resources/data/shapefiles/countries.*
./modules/unsupported/shapefile-renderer/src/test/resources/org/geotools/renderer/shape/test-data/"
--
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
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel