Shapefile renderer does not handle properly distance based fileter
------------------------------------------------------------------
Key: GEOT-1674
URL: http://jira.codehaus.org/browse/GEOT-1674
Project: GeoTools
Issue Type: Bug
Components: ext shapefilerender
Affects Versions: 2.4-RC0
Reporter: Andrea Aime
Fix For: 2.4-RC1, 2.5-M1
Be it a beyond or dwithin, the approach taken by shapefile renderer makes it
hard to apply.
The reference geom and the distance should be transformed, but that's not
enough. Given the simple case of a point geometry and a distance, a non
simmetric scale would break anything that just moves the point and transforms
the distance, because on screen space the reference "circle" might become a
rotated ellipse. If you factor in a coordinate transformation, the same might
become a bean or a potato ;)
The solution I'm envisaging is to take the original geometry, buffer it (with
lots of points to make up the bends, so that a single point gets buffered in at
least a 32 sides polygon), and then treat it as a intersects/don't intersects
test. It would not be as accurate as the original distance filter due to the
buffer approximations... yet I can't think of anything better at the moment.
It's really the design of shapefile renderer that makes this kind of filter
unsuitable to be used effectively, we should filter against the original
geometries, instead we're forced to filter against the transformed ones.
--
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