DescribeFeatureType Response

Feedback


Response introduction

When WFS 2.0.0 service is responding to the DescribeFeatureType operation, two output formats are supported by default and the two formats are declared in the Capabilities XML document. The two formats are "application/gml+xml;version=3.2" and "text/xml;subtype=gml/3.2".

WFS 2.0.0 supports multiple Namespaces. However, a XML Schema document can only describe elements in a single namespace. Therefore, a WFS 2.0.0 service cannot describe multiple namespaces through one XML Schema document. To solve this problem, it is designed that WFS 2.0.0 can generate an XML Schema document, a wrapper Schema to which different namespaces can be imported.

The request of using multiple namespaces to describe the feature type is as follows:

<?xml version="1.0" ?><?xml version="1.0"?>

<DescribeFeatureType version="2.0.0" service="WFS"

    xmlns="http://www.opengis.net/wfs/2.0" xmlns:ns01="http://www.server01.com/ns01"

    xmlns:ns02="http://www.server02.com/ns02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://www.opengis.net/wfs/2.0

http://schemas.opengis.net/wfs/2.0.0/wfs.xsd">

    <TypeName>ns01:TreesA_1M</TypeName>

    <TypeName>ns02:RoadL_1M</TypeName>

</DescribeFeatureType>

The corresponding response is as follows:

<?xml version="1.0" ?>

<xsd:schema targetNamespace="http://www.server01.com/ns01"

    xmlns:ns01="http://www.server01.com/ns01" xmlns:xsd="http://www.w3.org/2001/XMLSchema"

    elementFormDefault="qualified" attributeFormDefault="unqualified">

    <import namespace="http://www.server02.com/ns02"

        schemaLocation="http://www.yourserver.com/wfs.cgi?

REQUEST=DescribeFeatureType&TYPENAMES=ns02:RoadL_1M" />

    <xsd:element name="TREESA_1M" type="ns01:TREESA_1MType"

        substitutionGroup="gml:_AbstractFeature" />

    <xsd:complexType name="TREESA_1MType">

        <xsd:complexContent>

            <xsd:extension base="gml:AbstractFeatureType">

                <!-- list property declarations for feature type TREESA_1M -->

            </xsd:extension>

        </xsd:complexContent>

    </xsd:complexType>

    <!-- other declarations that are part of this schema -->

</xsd:schema>

Response example

The response of the Request example is as follows: