Opened 14 years ago

#3376 new defect

GetFeature with an OGC filter containing a bbox outside of the UTM zone has to trigger an exception

Reported by: nsavard Owned by: mapserverbugs
Priority: normal Milestone:
Component: WFS Server Version: svn-trunk (development)
Severity: normal Keywords: wfs1.1 getfeature bbox utm zone
Cc: assefa, tomkralidis

Description

The bbox of an OGC filter has to be in the correct UTM zone.

Test: GetFeature Post:wfs-1.1.0-Basic-GetFeature-tc209.3

Request:

   URL: http://gw.mapgears.com:8500/cgi-bin/mswfs110_ogc_cite?
   Body: 
<wfs:GetFeature xmlns="http://www.occamlab.com/ctl" xmlns:ctl="http://www.occamlab.com/ctl"
                xmlns:gml="http://www.opengis.net/gml"
                xmlns:myparsers="http://teamengine.sourceforge.net/parsers"
                xmlns:ogc="http://www.opengis.net/ogc"
                xmlns:ows="http://www.opengis.net/ows"
                xmlns:p="http://teamengine.sourceforge.net/parsers"
                xmlns:parsers="http://www.occamlab.com/te/parsers"
                xmlns:saxon="http://saxon.sf.net/"
                xmlns:sf="http://cite.opengeospatial.org/gmlsf"
                xmlns:te="http://www.occamlab.com/te"
                xmlns:tec="java:com.occamlab.te.TECore"
                xmlns:wfs="http://www.opengis.net/wfs"
                xmlns:xi="http://www.w3.org/2001/XInclude"
                xmlns:xlink="http://www.w3.org/1999/xlink"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                service="WFS"
                version="1.1.0">
   <wfs:Query srsName="urn:x-ogc:def:crs:EPSG:6.11:32631" typeName="sf:PrimitiveGeoFeature">
      <ogc:Filter>
         <ogc:And>
            <ogc:BBOX>
               <ogc:PropertyName>sf:pointProperty</ogc:PropertyName>
               <gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:4326">
                  <gml:lowerCorner>30 -12</gml:lowerCorner>
                  <gml:upperCorner>60 -6</gml:upperCorner>
               </gml:Envelope>
            </ogc:BBOX>
            <ogc:PropertyIsEqualTo>
               <ogc:PropertyName>gml:name</ogc:PropertyName>
               <ogc:Literal>name-f015</ogc:Literal>
            </ogc:PropertyIsEqualTo>
         </ogc:And>
      </ogc:Filter>
   </wfs:Query>
</wfs:GetFeature>

Response:

<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection
   xmlns:sf="http://cite.opengeospatial.org/gmlsf"
   xmlns:gml="http://www.opengis.net/gml"
   xmlns:wfs="http://www.opengis.net/wfs"
   xmlns:ogc="http://www.opengis.net/ogc"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://cite.opengeospatial.org/gmlsf http://gw.mapgears.com:8500/cgi-bin/mswfs110_ogc_cite?SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=sf:PrimitiveGeoFeature&amp;OUTPUTFORMAT=text/xml; subtype=gml/3.1.1  http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
      <gml:boundedBy>
      	<gml:Envelope srsName="EPSG:4326">
      		<gml:lowerCorner>-10.520000 34.940000</gml:lowerCorner>
      		<gml:upperCorner>-10.520000 34.940000</gml:upperCorner>
      	</gml:Envelope>
      </gml:boundedBy>
    <gml:featureMember>
      <sf:PrimitiveGeoFeature gml:id="PrimitiveGeoFeature.f015">
        <sf:intProperty>-900</sf:intProperty>
        <sf:measurand>2.4</sf:measurand>
        <sf:decimalProperty>7.9</sf:decimalProperty>
      </sf:PrimitiveGeoFeature>
    </gml:featureMember>
</wfs:FeatureCollection>

Change History (0)

Note: See TracTickets for help on using tickets.