Christian Müller ha scritto:
> int JDBCSpatialFiltersTest there are 2 test methods for the BBOX filter. 
> 
> testBboxFilter()
> testBboxFilterDefault() 
> 
> I am a little bit confused because I thought I have to do an envelope 
> intersect (testing if the bbox intersects with the mbr of each geometry). 
> 
> But it seems to be the other way around, testing if the bbox intersects with 
> the geometry  (and not with the mbr of the geometry). 
> 
> In OracleFilterToSQL this problem seems to be handled with an instance 
> variable 
> 
> looseBBOXEnabled 
> 
> which has an default value of false. 
> 
> So, what is the right way or should I do it like the OracleFilter 

The WFS/Filter specification are clear, BBOX is just a shorthand
for full blown intersection, it just makes it easier to input the
rectangular geometry.
Yet, this is most of the time unacceptable from a performance point
of view, so we leave the option to the user to decide whether to
do a loose check instead, and do a mbr vs mbr test.

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to