DescribeFeatureType

According to the OGC WFS Implementation Specification, the function of the DescribeFeatureType operation is to generate a schema description for feature types serviced by a WFS implementation. The schema descriptions define how a WFS implementation expects feature instances to be encoded on input and how feature instances will be generated on output (OGC WFS Implementation Specification 2002).

The WFS Connector supports DescribeFeatureType requests issued using only HTTP GET/KVP encoding, although the WFS Implementation Specification also includes support for HTTP POST/XML encoding.

DescribeFeatureType request parameters

Parameter Remark
REQUEST (M) Name of WFS request type; must be DescribeFeatureType for a WFS DescribeFeatureType operation
SERVICE (M) Service type. Must be WFS for all WFS operations.
OUTPUTFORMAT (O) XMLSCHEMA is the only supported value.
TYPENAME (O) A comma separated list of feature types to describe. If no value is specified, then all feature types are returned.
VERSION (O) Request version number; the WFS Connector only supports WFS version 1.0.0

Note: Parameters marked with M are mandatory, and those marked with O are optional.

DescribeFeatureType example request

The following example uses the SantaClara_WFS service. The HTTP Get method is used to request a DescribeFeatureType document.

http://<hostname>/wfsconnector/com.esri.wfs.Esrimap/SantaClara_WFS?request=describefeaturetype&service=wfs&version=1.0.0&outputformat=xmlschema

where

<hostname> is the machine name where the WFS service or test environment has been created.

Response

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.esri.com/esri" xmlns:esri="http://www.esri.com/esri" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="0.1">
<xsd:import namespace="http://www.opengis.net/gml" schemaLocation="http://anakin/wfsconnector/schema/gml/2.1.2/feature.xsd"/>

  [...]

<xsd:complexType name="sc_rivers-4_Type">
<xsd:complexContent>
<xsd:extension base="gml:AbstractFeatureType">
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="fcc" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="length" type="xsd:double" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="gml:multiLineStringProperty"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="sc_rivers-4" type="esri:sc_rivers-4_Type" substitutionGroup="gml:_Feature"/>

  [...]

<xsd:complexType name="sc_cities-6_Type">
<xsd:complexContent>
<xsd:extension base="gml:AbstractFeatureType">
<xsd:sequence>
<xsd:element name="feature" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="fips55" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="pop" type="xsd:double" minOccurs="0" maxOccurs="1"/>
<xsd:element name="fips" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="gml:multiPointProperty"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="sc_cities-6" type="esri:sc_cities-6_Type" substitutionGroup="gml:_Feature"/>
</xsd:schema>