[CITE-Forum] Conformance test wfs-1.1.0-Basic-GetFeature-tc405.2 does not correctly validate multiple gml:name elements?

Peter De Maeyer peter.demaeyer at luciad.com
Fri Dec 5 12:05:22 EST 2014


Hi Sebastian,

I tried removing one of the gml:name elements as you suggested, yet the 
test /still /fails.

The baseline failure output is:

---

Testing wfs:wfs-1.1.0-Basic-GetFeature-tc405.2 type Mandatory in Test Mode with defaultResult Pass (com.luciad.ogc.wfs.WFS110ComplianceTest/d1e34518_1/d1e710_1/d1e24516_1/d1e15714_1/d1e13234_1)...
                   Assertion: Correctly evaluate the PropertyIsEqualTo predicate expressed by a valid ogc:PropertyIsEqualTo element.
                   FAILURE: gml:name != "Vivamus blandit" (gml:id = )
                   FAILURE: gml:name != "Vivamus blandit" (gml:id = )
                Test wfs:wfs-1.1.0-Basic-GetFeature-tc405.2 Failed

---

If I remove the element "<gml:name 
codeSpace="http://cite.opengeospatial.org/gmlsf">name-f102</gml:name>" 
from the data set, the failure output becomes:

---

Testing wfs:wfs-1.1.0-Basic-GetFeature-tc405.2 type Mandatory in Test Mode with defaultResult Pass (com.luciad.ogc.wfs.WFS110ComplianceTest/d1e34518_1/d1e710_1/d1e24516_1/d1e15714_1/d1e13234_1)...
                   Assertion: Correctly evaluate the PropertyIsEqualTo predicate expressed by a valid ogc:PropertyIsEqualTo element.
                   FAILURE: gml:name != "Vivamus blandit" (gml:id = )
                Test wfs:wfs-1.1.0-Basic-GetFeature-tc405.2 Failed

---

Notice that the "FAILURE" message is now repeated only once.

The request/response looks perfectly okay to me, the expected 
ComplexGeoFeature is returned:

---request---

<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" xmlns:gen="java:com.occamlab.te.Generator" xmlns:myparsers="http://teamengine.sourceforge.net/parsers" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sf="http://cite.opengeospatial.org/gmlsf" xmlns:ows="http://www.opengis.net/ows" xmlns:gml="http://www.opengis.net/gml" xmlns:saxon="http://saxon.sf.net/" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns="http://www.occamlab.com/ctl" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ctl="http://www.occamlab.com/ctl" xmlns:tec="java:com.occamlab.te.TECore" xmlns:tems="java:com.occamlab.te.web.MonitorServlet" xmlns:te="http://www.occamlab.com/te" xmlns:p="http://teamengine.sourceforge.net/parsers" xmlns:parsers="http://www.occamlab.com/te/parsers" version="1.1.0" service="WFS">
  <wfs:Query typeName="sf:ComplexGeoFeature" srsName="urn:ogc:def:crs:EPSG::4326">
   <ogc:Filter>
    <ogc:PropertyIsEqualTo>
     <ogc:PropertyName>gml:name</ogc:PropertyName>
     <ogc:Literal>Vivamus blandit</ogc:Literal>
    </ogc:PropertyIsEqualTo>
   </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

---

---response---

<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://www.w3.org/2001/SMIL20/" xmlns:gml="http://www.opengis.net/gml" xmlns:ns1="http://www.w3.org/2001/SMIL20/Language" xmlns="http://cite.opengeospatial.org/gmlsf" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ows="http://www.opengis.net/ows" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/filter/1.1.0/filter.xsd http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/base/gml.xsd http://cite.opengeospatial.org/gmlsf http://localhost:41769/LuciadLightspeedWFS/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=ComplexGeoFeature&OUTPUTFORMAT=text%2Fxml%3B+subtype%3Dgml%2F3.1.1 http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://www.w3.org/1999/xlink http://www.w3.org/1999/xlink.xsd http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsAll.xsd ">
   <gml:featureMembers>
     <ComplexGeoFeature gml:id="f102">
       <gml:description>
       Integer euismod risus. Class aptent taciti sociosqu ad litora torquent per
       conubia nostra, per inceptos hymenaeos. Phasellus nec risus.
       </gml:description>
       <gml:name codeSpace="http://cite.opengeospatial.org/gmlsf">name-f102</gml:name>
       <gml:name>Vivamus blandit</gml:name>
       <geometryProperty>
         <gml:Curve srsName="urn:ogc:def:crs:EPSG:6.11.2:4326">
           <gml:segments>
             <gml:LineStringSegment>
               <gml:posList>45.174 2.899 45.652 2.466 45.891 2.899</gml:posList>
             </gml:LineStringSegment>
             <gml:LineStringSegment>
               <gml:posList>45.891 2.899 48.174 2.899 48.652 2.466 48.891 2.899</gml:posList>
             </gml:LineStringSegment>
           </gml:segments>
         </gml:Curve>
       </geometryProperty>
       <observation uom="http://www.bipm.fr/en/si/si_brochure/chapter2/2-1/metre.html">14.1</observation>
       <typeCode codeSpace="https://www.dgiwg.org/FAD">SA060</typeCode>
       <auditTrail>
         <Event>
           <action>Insert</action>
           <timestamp>2006-10-21T11:28:00+01:00</timestamp>
           <userid>Axel.Lidenbrock</userid>
         </Event>
         <Event>
           <action>Update</action>
           <timestamp>2006-10-30T21:05:00+01:00</timestamp>
           <userid>Phineas.Fogg</userid>
         </Event>
       </auditTrail>
     </ComplexGeoFeature>
   </gml:featureMembers>
</wfs:FeatureCollection>

---

This looks to me like the test is broken, but if that were true, it 
would mean that this test would fail not just for mine but for most (if 
not all) other implementations as well...

One more thing: the failure message

FAILURE: gml:name != "Vivamus blandit" (gml:id = )

tries to report the GML ID but apparently can't extract the gml:id 
attribute from the ComplexGeoFeature, even though it is present...

Kind regards,

Peter De Maeyer
Luciad

> Hi Peter,
>
> yes, I have seen this before aswell. I think, the best way to get out
> of this is to adapt the test data set and investigate if removing one
> of the name elements affects any test.
>
> Best regards
>
> Sebastian
>
> Am 07.10.2014 um 16:36 schrieb Peter De Maeyer:
>> Hi,
>>
>> wfs:wfs-1.1.0-Basic-GetFeature-tc405.2 conformance test fails
>> against my server. I believe the reason is that the validator
>> cannot deal with GML elements that have multiple <gml:name>
>> elements, which is allowed according to the GML specification. Full
>> output:
>>
>> ---
>>
>> Test wfs:wfs-1.1.0-Basic-GetFeature-tc405.2 type Mandatory default
>> result Passed
>> (s0007/d150e34518_1/d150e710_1/d150e24516_1/d150e15714_1/d150e13234_1)
>>
>>   Assertion: Correctly evaluate the PropertyIsEqualTo predicate
>> expressed by a valid ogc:PropertyIsEqualTo element.
>>
>> Request d150e14286_1: Method: post URL:
>> http://demo.luciad.com:80/LuciadLightspeedWFS/wfs? Body:
>> <wfs:GetFeature xmlns="http://www.occamlab.com/ctl"  
>> xmlns:ctl="http://www.occamlab.com/ctl"  
>> xmlns:gen="java:com.occamlab.te.Generator"
>> 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:tems="java:com.occamlab.te.web.MonitorServlet"
>> 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:ogc:def:crs:EPSG::4326"
>> typeName="sf:ComplexGeoFeature"> <ogc:Filter>
>> <ogc:PropertyIsEqualTo>
>> <ogc:PropertyName>gml:name</ogc:PropertyName> <ogc:Literal>Vivamus
>> blandit</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter>
>> </wfs:Query> </wfs:GetFeature> Response from parser
>> p:XMLValidatingParser.GMLSF1: <wfs:FeatureCollection
>> xmlns="http://cite.opengeospatial.org/gmlsf"  
>> xmlns:gml="http://www.opengis.net/gml"  
>> xmlns:ns0="http://www.w3.org/2001/SMIL20/"  
>> xmlns:ns1="http://www.w3.org/2001/SMIL20/Language"  
>> xmlns:ogc="http://www.opengis.net/ogc"  
>> xmlns:ows="http://www.opengis.net/ows"  
>> xmlns:wfs="http://www.opengis.net/wfs"  
>> xmlns:xlink="http://www.w3.org/1999/xlink"  
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
>> xsi:schemaLocation="http://www.opengis.net/ogc  
>> http://schemas.opengis.net/filter/1.1.0/filter.xsd  
>> http://www.w3.org/2001/XMLSchema
>> http://www.w3.org/2001/XMLSchema.xsd  http://www.opengis.net/gml  
>> http://schemas.opengis.net/gml/3.1.1/base/gml.xsd  
>> http://cite.opengeospatial.org/gmlsf  
>> http://demo.luciad.com:80/LuciadLightspeedWFS/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=ComplexGeoFeature&OUTPUTFORMAT=text%2Fxml%3B+subtype%3Dgml%2F3.1.1
>>
>>
> http://www.opengis.net/wfs  http://schemas.opengis.net/wfs/1.1.0/wfs.xsd
>> http://www.w3.org/1999/xlink  http://www.w3.org/1999/xlink.xsd  
>> http://www.opengis.net/ows  
>> http://schemas.opengis.net/ows/1.0.0/owsAll.xsd  ">
>> <gml:featureMembers> <ComplexGeoFeature gml:id="f102">
>> <gml:description> Integer euismod risus. Class aptent taciti
>> sociosqu ad litora torquent per conubia nostra, per inceptos
>> hymenaeos. Phasellus nec risus. </gml:description> <gml:name
>> codeSpace="http://cite.opengeospatial.org/gmlsf">name-f102</gml:name>
>>
>>
> <gml:name>Vivamus blandit</gml:name>
>> <geometryProperty> <gml:Curve
>> srsName="urn:ogc:def:crs:EPSG:6.11.2:4326"> <gml:segments>
>> <gml:LineStringSegment> <gml:posList>45.174 2.899 45.652 2.466
>> 45.891 2.899</gml:posList> </gml:LineStringSegment>
>> <gml:LineStringSegment> <gml:posList>45.891 2.899 48.174 2.899
>> 48.652 2.466 48.891 2.899</gml:posList> </gml:LineStringSegment>
>> </gml:segments> </gml:Curve> </geometryProperty> <observation
>> uom="http://www.bipm.fr/en/si/si_brochure/chapter2/2-1/metre.html">14.1</observation>
>>
>>   <typeCode codeSpace="https://www.dgiwg.org/FAD">SA060</typeCode>
>> <auditTrail> <Event> <action>Insert</action>
>> <timestamp>2006-10-21T11:28:00+01:00</timestamp>
>> <userid>Axel.Lidenbrock</userid> </Event> <Event>
>> <action>Update</action>
>> <timestamp>2006-10-30T21:05:00+01:00</timestamp>
>> <userid>Phineas.Fogg</userid> </Event> </auditTrail>
>> </ComplexGeoFeature> </gml:featureMembers> <!--Response received in
>> [136] milliseconds--></wfs:FeatureCollection>
>>
>> Message d150e14349_1: FAILURE: gml:name != "Vivamus blandit"
>> (gml:id = )
>>
>> Message d150e14349_2: FAILURE: gml:name != "Vivamus blandit"
>> (gml:id = )
>>
>> Result: Failed
>>
>>
>> --- _______________________________________________ CITE-Forum
>> mailing listCITE-Forum at lists.opengeospatial.org  
>> https://lists.opengeospatial.org/mailman/listinfo/cite-forum
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengeospatial.org/pipermail/cite-forum/attachments/20141205/042d5511/attachment-0001.html>


More information about the CITE-Forum mailing list