org.geotools.data.wfs.v1_0_0.GeoServerOnlineTest.testFeatureReaderWithFilterBBoxGET
 broken
------------------------------------------------------------------------------------------

                 Key: GEOT-2285
                 URL: http://jira.codehaus.org/browse/GEOT-2285
             Project: GeoTools
          Issue Type: Improvement
          Components: data wfs
            Reporter: Andrea Aime
            Assignee: Gabriel Roldán
             Fix For: 2.6-M0


Another case of axis flipping, just worse than usual.
What happens is the following:
- the tests tries to grab the native bounds
- the code finds out that the bounds it needs are in the caps, builds the 
geographic bounding box out of it, and then reprojects it to the native SRS.

Now, without any settings in the referencing subsystem you'll end up doing a 
CRS.decode("EPSG:4326") that returns a lat/lon oriented crs,
which will flip the bbox axis making the rest of the test blow up.

Since that code is in WFS 1.1 it is safe to assume the axis are lon/lat 
oriented so a CRS.decode(fsd.getSRS(), true) will do the trick.

And oh, the method in itself is seriously broken as it ignores completely and 
eventual filter embedded inside the query. If the filter is not Filter.INCLUDE 
it should delegate to the base class or return null directly.

-- 
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:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to