[Geoserver-devel] [jira] Created: (GEOS-1439) BBox filters won't consider their envelope SRS

BBox filters won't consider their envelope SRS
----------------------------------------------

                 Key: GEOS-1439
                 URL: http://jira.codehaus.org/browse/GEOS-1439
             Project: GeoServer
          Issue Type: Bug
          Components: WFS
    Affects Versions: 1.6.0-beta3
            Reporter: Andrea Aime
            Assignee: Justin Deoliveira
             Fix For: 1.6.0-RC1

Given the following query:

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs&quot;
                xmlns:sf="http://cite.opengeospatial.org/gmlsf&quot;
                xmlns:myparsers="http://teamengine.sourceforge.net/parsers&quot;
                xmlns:parsers="http://www.occamlab.com/te/parsers&quot;
                xmlns:saxon="http://saxon.sf.net/&quot;
                xmlns:p="http://teamengine.sourceforge.net/parsers&quot;
                xmlns="http://www.occamlab.com/ctl&quot;
                xmlns:ctl="http://www.occamlab.com/ctl&quot;
                xmlns:ogc="http://www.opengis.net/ogc&quot;
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                xmlns:gml="http://www.opengis.net/gml&quot;
                xmlns:xlink="http://www.w3.org/1999/xlink&quot;
                xmlns:te="java:com.occamlab.te.TECore"
                xmlns:ows="http://www.opengis.net/ows&quot;
                xmlns:xi="http://www.w3.org/2001/XInclude&quot;
                xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
                service="WFS"
                version="1.1.0">
         <wfs:Query typeName="sf:EntitéGénérique">
            <ogc:Filter>
               <ogc:Not>
                  <ogc:BBOX>
                     <ogc:PropertyName>attribut.Géométrie</ogc:PropertyName>
                     <gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
                        <gml:lowerCorner>34.0 16.0</gml:lowerCorner>
                        <gml:upperCorner>40.0 19.0</gml:upperCorner>
                     </gml:Envelope>
                  </ogc:BBOX>
               </ogc:Not>
            </ogc:Filter>
         </wfs:Query>
      </wfs:GetFeature>

The result will be wrong because OGCBBOXTypeBinding won't take
into consideration its envelope's srs. This is again a case were we would
like to have the srsName instead of a crs.
Maybe we should just really have an utiliity that spits out the correct srs (epsg:xxx or urn.xxx)
depeding on axis orientation...

--
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