MySQL store does not honor spatial filters properly
---------------------------------------------------

                 Key: GEOT-3713
                 URL: https://jira.codehaus.org/browse/GEOT-3713
             Project: GeoTools
          Issue Type: Bug
          Components: jdbc-mysql plugin
    Affects Versions: 2.7.2
            Reporter: Andrea Aime
            Assignee: Justin Deoliveira


Was giving mysql a kick. Disappointing as usual, and noticed that the spatial 
filters are not properly implemented, doing a GetFeatureInfo on topp:states 
imported in mysql returns more than one state sometimes, even clicking in the 
middle of the polygon.
Now, this is well known, mysql just fakes support for the spatial filters other 
than the bbox one.
One way to deal with this is to do primary filtering (bbox) in the db and the 
rest in memory, however the current code does not help, because "intersect" in 
that case is not supported or unsupported, it's half and half.
IMHO JDBCFeatureSource.splitFilter(...) should be delegated to the dialect, 
most implementations would just use it as it is today, mysql can extract a bbox 
filter from the larger filter if possible (shapefile do the same) and then 
split the filter assuming intersects is not supported, then "and" the supported 
part with the bbox and run it, leaving everything else to be performed in memory

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to