[CITE-Forum] WFS 1.0.0 GetFeature test case failure

Andreas Schmitz schmitz at lat-lon.de
Fri Feb 24 09:26:58 EST 2012


Alok Sarawat wrote:

Hi,

> Thanks for the reply.
> 
> I validated it against schema and there is no validation error in the xml. I also used GML validator for verification also http://cite.opengeospatial.org/test_engine/gml/2.1.2/validator/
> 
> I also tried other implementations and they are also using their own element type instead of gml:pointProperty.
> 
> Other e.g. 
> http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?request=GetFeature&service=WFS&version=1.0.0&typeName=park
> http://frameworkwfs.usgs.gov/framework/wfs/wfs.cgi?datastore=GNIS&service=WFS&request=GetFeature&version=1.0.0&typename=iso19112:SI_LocationInstance&OUTPUTFORMAT=GML2&MAXFEATURES=2
> 
> I also tried Gaia 3.4.2 to consume my WFS and it is also not giving
> any error.

technically, your WFS is configured correctly. It's just not configured
with the cite-gmlsf schema that the tests are using/expecting. Have a
look at the appropriate section in eg. the dataFeatures.xsd:

  <xsd:complexType name="OtherFeatureType">
    <xsd:complexContent>
      <xsd:extension base="gml:AbstractFeatureType">
        <xsd:sequence>
          <xsd:element ref="gml:pointProperty" minOccurs="0"/>
          <xsd:element name="string1" type="xsd:string"/>
          <xsd:element name="string2" type="xsd:string" minOccurs="0"/>
          <xsd:element name="integers" type="xsd:integer"
    minOccurs="0"/>
          <xsd:element name="dates" type="xsd:date" minOccurs="0"/>
        </xsd:sequence>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>

Note the line

          <xsd:element ref="gml:pointProperty" minOccurs="0"/>

What you have is 

          <xs:element name="Obj" type="gml:PointPropertyType"
          minOccurs="0" maxOccurs="1" nillable="false"></xs:element>

You can also see the difference in the original test data (from
http://cite.opengeospatial.org/teamengine/wfs-1.0.0-r3/data/data-wfs-1.0.0.zip):

    <cdf:Other>
      <gml:description>A Single Feature used to test returning of
      properties</gml:description>
      <gml:name>singleFeature</gml:name>
      <gml:boundedBy>
        <gml:Box srsName="EPSG:32615">
          <gml:coordinates>500000,500000 500100,500100</gml:coordinates>
        </gml:Box>
      </gml:boundedBy>
      <gml:pointProperty>
        <gml:Point srsName="EPSG:32615">
          <gml:coordinates>500050,500050</gml:coordinates>
        </gml:Point>
      </gml:pointProperty>
      <cdf:string1>always</cdf:string1>
      <cdf:string2>sometimes</cdf:string2>
      <cdf:integers>7</cdf:integers>
      <cdf:dates>2002-12-02</cdf:dates>
    </cdf:Other>

vs. in your response:

    <cdf:Other>
      <gml:description></gml:description>
      <gml:name></gml:name>
      <gml:boundedBy>
        <gml:Box srsName="EPSG:32615">
          <gml:coordinates>500050.0027998108,500049.9962739085
      500050.0027998108,500049.9962739085</gml:coordinates>
        </gml:Box>
      </gml:boundedBy>
      <cdf:Obj>
        <gml:Point srsName="EPSG:32615">
          <gml:coordinates>500050.0027998108,500049.9962739085</gml:coordinates>
        </gml:Point>
      </cdf:Obj>
      <cdf:string1>always</cdf:string1>
      <cdf:string2>sometimes</cdf:string2>
      <cdf:integers>7</cdf:integers>
      <cdf:dates>2002-12-02</cdf:dates>
    </cdf:Other>

Note the 

      <gml:pointProperty>
        <gml:Point srsName="EPSG:32615">
          <gml:coordinates>500050,500050</gml:coordinates>
        </gml:Point>
      </gml:pointProperty>

vs. in your response

      <cdf:Obj>
        <gml:Point srsName="EPSG:32615">
          <gml:coordinates>500050.0027998108,500049.9962739085</gml:coordinates>
        </gml:Point>
      </cdf:Obj>

Best regards, Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.opengeospatial.org/pipermail/cite-forum/attachments/20120224/02422244/attachment.pgp>


More information about the CITE-Forum mailing list