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"
xmlns:sf="http://cite.opengeospatial.org/gmlsf"
xmlns:myparsers="http://teamengine.sourceforge.net/parsers"
xmlns:parsers="http://www.occamlab.com/te/parsers"
xmlns:saxon="http://saxon.sf.net/"
xmlns:p="http://teamengine.sourceforge.net/parsers"
xmlns="http://www.occamlab.com/ctl"
xmlns:ctl="http://www.occamlab.com/ctl"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:te="java:com.occamlab.te.TECore"
xmlns:ows="http://www.opengis.net/ows"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
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