Pitney Bowes MapXtreme User Manual

Page 391

Advertising
background image

Chapter 22: Web Feature Service

Understanding WFS Server Operations

MapXtreme v7.1

398

Developer Guide

MIDbType.Key

MIDbType.Raster

MIDbType.Style

The following shows a portion of a DescribeFeatureType response document. In this case, the
request is for a feature type called USA. The USA feature type has several properties represented
by the geometry column OBJ, and data columns for State and State_Name.

<?xml version="1.0" encoding="utf-8" ?>
- <schema targetNamespace="http://www.mapinfo.com/wfs"
xmlns:miwfs="http://www.mapinfo.com/wfs"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified"
xmlns="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://www.opengis.net/gml"
schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd" />
<xs:import namespace="http://www.opengis.net/wfs"
schemaLocation="http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd" />
<xs:element name="USA" type="miwfs:USA_Type"
substitutionGroup="gml:_Feature" />
- <xs:complexType name="USA_Type">
- <xs:complexContent>
- <xs:extension base="gml:AbstractFeatureType">
- <xs:sequence>
- <xs:element name="Obj" minOccurs="0" maxOccurs="1">
- <xs:complexType>
- <xs:sequence>
<xs:element ref="gml:_Geometry" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="State" nillable="false" type="xs:string" minOccurs="0"
maxOccurs="1" />
<xs:element name="State_Name" nillable="false" type="xs:string"
minOccurs="0" maxOccurs="1" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</schema>

GetFeature

Once you know the available feature types and their properties, the final step to retrieving WFS
feature information is sending a GetFeature request. This request specifies which feature and
properties to fetch. In order to retrieve a subset of features, use filtering operations to constrain the
query both spatially and/or non-spatially. See

Code Example: Requesting Features Using Filters

.

GetFeature is supported via HTTP POST.

Among the OGC-supported parameters, Request and TypeName are required. PropertyName,
Filter, FeatureID and others are optional. TypeName is optional when FeatureID is specified. For
further details, see the OGC Web Feature Service Implementation Specification.

Advertising