Open Geospatial Consortium
OGC Doc 07-164
For
HELP
on using this form, see bottom of this page or look at the pop-up text over the symbols.Proposed change affects: AS Imp Spec Best Practices Paper Other X
Title: WFS 1.1.0 test suite CR – Fix sortby tests
Source: Chuck Morris, Richard Martell
Work item code: Date:
Category: F
Use one of the following categories:
F (Critical correction)
A (corresponds to a correction in an earlier release)
B (Addition of feature),
C (Functional modification of feature)
D (Editorial modification)
Detailed explanations of the above categories can be found in the TC Policies and Procedures.
Reason for change: The sortby tests in the WFS 1.1.0 test suite don’t work for some valid WFS 1.1.0 implementations. The test scripts expect multiple feature elements inside a single gml:featureMembers element and fail if there are multiple
gml:featureMember elements that each contain a feature element, but both ways of implementing a feature collection are valid.
Summary of change: Modified the test scripts to work with either implementation of a feature collection.
Consequences if
not approved:
Some members will not be able to pass the compliance tests and receive certification.
Clauses affected: Test wfs-1.1.0-Basic-GetFeature-tc50.1 Test wfs-1.1.0-Basic-GetFeature-tc50.2
Other specs Other core specifications
Supporting Doc.
Other comments:
Status NEW
Disposition
In GetFeature-GET.xml, tests GetFeature-tc50.1 and wfs-1.1.0-Basic-GetFeature-tc50.2
and GetFeature-POST.xml, tests GetFeature-tc51.1 and wfs-1.1.0-Basic-GetFeature-tc51.2
Replace the lines
<xsl:variable name="f1.int"
select="$request1//sf:PrimitiveGeoFeature[1]/sf:intProperty" /> <xsl:variable name="f2.int"
select="$request1//sf:PrimitiveGeoFeature[2]/sf:intProperty" /> <xsl:variable name="f3.int"
select="$request1//sf:PrimitiveGeoFeature[3]/sf:intProperty" />
with
<xsl:variable name="features"
select="$request1//sf:PrimitiveGeoFeature"/>
<xsl:variable name="f1.int" select="$features[1]/sf:intProperty" /> <xsl:variable name="f2.int" select="$features[2]/sf:intProperty" /> <xsl:variable name="f3.int" select="$features[3]/sf:intProperty" />
In GetFeature-POST.xml, tests GetFeature-tc51.3 and wfs-1.1.0-Basic-GetFeature-tc51.4
Replace the lines
<xsl:variable name="f1.str"
select="$request1//sf:AggregateGeoFeature[1]/sf:featureCode" /> <xsl:variable name="f2.str"
select="$request1//sf:AggregateGeoFeature[2]/sf:featureCode" /> <xsl:variable name="f3.str"
select="$request1//sf:AggregateGeoFeature[3]/sf:featureCode" />
with
<xsl:variable name="features"
select="$request1//sf:AggregateGeoFeature"/>
<xsl:variable name="f1.str" select="$features[1]/sf:featureCode" /> <xsl:variable name="f2.str" select="$features[2]/sf:featureCode" /> <xsl:variable name="f3.str" select="$features[3]/sf:featureCode" />
In GetFeature-POST.xml, tests GetFeature-tc51.5 and wfs-1.1.0-Basic-GetFeature-tc51.6
Replace the lines
<xsl:variable name="f1.date"
select="$request1//sf:PrimitiveGeoFeature[1]/sf:dateProperty" /> <xsl:variable name="f2.date"
select="$request1//sf:PrimitiveGeoFeature[2]/sf:dateProperty" /> <xsl:variable name="f3.date"
select="$request1//sf:PrimitiveGeoFeature[3]/sf:dateProperty" />
<xsl:variable name="features"
select="$request1//sf:PrimitiveGeoFeature"/>