Web Feature Service
   HOME

TheInfoList



OR:

In
computing Computing is any goal-oriented activity requiring, benefiting from, or creating computer, computing machinery. It includes the study and experimentation of algorithmic processes, and the development of both computer hardware, hardware and softw ...
, the
Open Geospatial Consortium The Open Geospatial Consortium (OGC) is an international voluntary consensus standards organization that develops and maintains international standards for geospatial content and location-based services, sensor web, Internet of Things, Geographi ...
Web Feature Service (WFS) Interface Standard provides an interface allowing requests for
geographical Geography (from Ancient Greek ; combining 'Earth' and 'write', literally 'Earth writing') is the study of the lands, features, inhabitants, and phenomena of Earth. Geography is an all-encompassing discipline that seeks an understanding o ...
features across the
web Web most often refers to: * Spider web, a silken structure created by the animal * World Wide Web or the Web, an Internet-based hypertext system Web, WEB, or the Web may also refer to: Computing * WEB, a literate programming system created by ...
using platform-independent calls. One can think of geographical features as the "
source code In computing, source code, or simply code or source, is a plain text computer program written in a programming language. A programmer writes the human readable source code to control the behavior of a computer. Since a computer, at base, only ...
" behind a map, whereas the WMS interface or online tiled mapping portals like
Google Maps Google Maps is a web mapping platform and consumer application offered by Google. It offers satellite imagery, aerial photography, street maps, 360° interactive panorama, interactive panoramic views of streets (Google Street View, Street View ...
return only an image, which end-users cannot edit or spatially analyze. The
XML Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
-based
Geography Markup Language The Geography Markup Language (GML) is the XML grammar defined by the Open Geospatial Consortium (OGC) to express geographical features. GML serves as a modeling language for geographic systems as well as an open interchange format for geographic ...
(GML) furnishes the default payload-encoding for transporting geographic features, but other formats like
shapefile The shapefile format is a geospatial vector data format for geographic information system (GIS) software. It is developed and regulated by Esri as a mostly open specification for data interoperability among Esri and other GIS software product ...
s can also serve for transport. In early 2006 the OGC members approved the OpenGIS GML Simple Features Profile. This profile is designed both to increase interoperability between WFS servers and to improve the ease of implementation of the WFS standard. The OGC membership defined and maintains the WFS specification. Numerous commercial and
open-source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
implementations of the WFS interface standard exist, including the open-source reference implementations
GeoServer In computing, GeoServer is an open-source server written in Java that allows users to share, process and edit geospatial data. Designed for interoperability, it publishes data from any major spatial data source using open standards. GeoServer h ...
and
deegree The Open Source Geospatial Foundation (OSGeo), is a non-profit non-governmental organization whose mission is to support and promote the collaborative development of open geospatial technologies and data. The foundation was formed in February 20 ...
. The OGC Implementing Products page provides a comprehensive list of WFS implementations.


Overview

The WFS specification defines interfaces for describing data manipulation operations of geographic features. Data manipulation operations include the ability to: * get or query features based on spatial and non-spatial constraints * create a new feature instance * delete a feature instance * update a feature instance The basic Web Feature Service allows querying and retrieval of features. A transactional Web Feature Service (WFS-T) allows creation, deletion, and updating of features. A WFS describes discovery, query, or data transformation operations. The client generates the request and posts it to a web feature server using HTTP. The web feature server then executes the request. The WFS specification uses HTTP as the distributed computing platform, although this is not a hard requirement. There are two encodings defined for WFS operations: *
XML Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
(amenable to HTTP POST, or
SOAP Soap is a salt (chemistry), salt of a fatty acid (sometimes other carboxylic acids) used for cleaning and lubricating products as well as other applications. In a domestic setting, soaps, specifically "toilet soaps", are surfactants usually u ...
) * Key/value pairs (encoded in HTTP GET
query string A query string is a part of a uniform resource locator ( URL) that assigns values to specified parameters. A query string commonly includes fields added to a base URL by a Web browser or other client application, for example as part of an HTML doc ...
s, to perform
remote procedure call In distributed computing, a remote procedure call (RPC) is when a computer program causes a procedure (subroutine) to execute in a different address space (commonly on another computer on a shared computer network), which is written as if it were a ...
s) In the taxonomy of
Web Services A web service (WS) is either: * a service offered by an electronic device to another electronic device, communicating with each other via the Internet, or * a server running on a computer device, listening for requests at a particular port over a n ...
, WFS is best categorized as a non-RESTful RPC type service.


Communication models

The WFS Web Feature Services or Web Feature Server specification supports two communication models: *Stateless Request Reply *Pub/Sub ::A messaging system in which clients address messages to a specific node in a content hierarchy, called a topic. Publishers and subscribers are generally anonymous and can dynamically publish or subscribe to the content hierarchy. The system takes care of distributing the messages arriving from a node's multiple publishers to its multiple subscribers. Messages are generally not persistent and will only be received by subscribers who are listening at the time the message is sent. A special case known as a “durable subscription” allows subscribers to receive messages sent while the subscribers are not active. (Source
Oracle Technology Network for Java Developers , Oracle Technology Network , Oracle
The Web Notification Service (WNS) is one of the implementation specifications for the Pub/Sub model. Regardless of the model,
URL A uniform resource locator (URL), colloquially known as an address on the Web, is a reference to a resource that specifies its location on a computer network and a mechanism for retrieving it. A URL is a specific type of Uniform Resource Identi ...
format is used and specified in the WFS specification. At this time there are no open-standard implementations of WNSs. Vendors plan to release implementations once the standard has been ratified.


Data

Data passed between a Web Feature Server and a client is encoded with
Geography Markup Language The Geography Markup Language (GML) is the XML grammar defined by the Open Geospatial Consortium (OGC) to express geographical features. GML serves as a modeling language for geographic systems as well as an open interchange format for geographic ...
(GML), an XML dialect which can be used to model geographic features. The 1.0.0 version of the WFS specification requires the use of GML version 2.1.2, while the 1.1.0 version of the WFS specification requires the use of GML version 3.1.1. For both versions of the WFS specification, an arbitrary number of other encodings can also be defined, in addition to the required GML 2.1.2 or 3.1.1 format (for 1.0.0 and 1.1.0 respectively). GML 2.1.2 contains encoding support for basic geometric 'primitives': points, lines, polygons, etc. GML 3.1.1 contains encoding support for more advanced geometric representations: curves, surfaces, multi-dimensions (time, elevation, multi-band imagery). In addition, GML 3.1.1 includes encoding support for topologically integrated datasets.


Public Interfaces


Static Interfaces

The static interface model for the OGC Web Service model appears in the figure below. The Transaction and LockFeature operations are also optional. When writing a WFS, you must implement the following operations: *GetCapabilities - this queries the WFS service to determine available options. *DescribeFeatureType - this retrieves the XML schema to allow the WFS client to parse the resultsets. *GetFeature - this performs the actual query - parameters such as
bounding box In geometry, the minimum bounding box or smallest bounding box (also known as the minimum enclosing box or smallest enclosing box) for a point set in dimensions is the box with the smallest measure (area, volume, or hypervolume in higher dime ...
and any other filters should be passed in, as appropriate, and the WFS service then returns a GML resultset containing full geometry and feature attributes.


Dynamic interface updates

The client gets updates by one of two mechanisms: *Notification: Recommended but not mandatory. Depends on the availability of a WNS implementation. *Polling: Use this method if a WNS implementation is not available. WFS dynamic interface web notification model This model uses the OGC Web Notification Service to send update notifications to registered clients.


See also

*
Open Source Geospatial Foundation The Open Source Geospatial Foundation (OSGeo), is a non-profit non-governmental organization whose mission is to support and promote the collaborative development of open geospatial technology, technologies and data. The foundation was formed in ...
* Web Coverage Service (WCS) * Web Coverage Processing Service (WCPS) *
Web Map Service A Web Map Service (WMS) is a standard protocol developed by the Open Geospatial Consortium in 1999 for serving georeferenced map images over the Internet. These images are typically produced by a map server from data provided by a GIS database ...
(WMS)


External links


''OpenGIS Web Feature Service (WFS) Implementation Specification''

''Filter Encoding Specification''

''GeoServer Open Source Reference Implementation''

''deegree Open Source Geospatial Web Services''

''WFS 2.0 Client – Plugin for QGIS (english)''

''WNS: Draft OpenGIS Web Notification Service Implementation Specification''


References

{{OGC Open Geospatial Consortium ISO/TC 211 Web Map Services