Opened 14 years ago

#3375 new defect

need to support bbox with propertyName not set in an OGC filter

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

Description

When the optional propertyName is not set, the service must determine which spatial property is the spatial key and apply the bbox to it.

Test: GetFeature Post wfs-1.1.0-Basic-GetFeature-tc101.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:4326" typeName="sf:AggregateGeoFeature">

<ogc:Filter>

<ogc:And>

<ogc:Not>

<ogc:BBOX>

<ogc:PropertyName/> <gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:4326">

<gml:lowerCorner>40.0 -5.0</gml:lowerCorner> <gml:upperCorner>50.0 -1.0</gml:upperCorner>

</gml:Envelope>

</ogc:BBOX>

</ogc:Not> <ogc:PropertyIsGreaterThan>

<ogc:PropertyName>sf:doubleProperty</ogc:PropertyName> <ogc:Literal>20.0</ogc:Literal>

</ogc:PropertyIsGreaterThan>

</ogc:And>

</ogc:Filter>

</wfs:Query>

</wfs:GetFeature>

}}}

Change History (0)

Note: See TracTickets for help on using tickets.