OpenGIS
©
Specification OGC 04-094
Copyright © Open Geospatial Consortium, Inc 2005
86
GetFeatureWithLock ResultType GetFeatureWithLock OutputFormat
GetGMLObject OutputFormat LockFeature LockAction
Transaction InputFormat Transaction Idgen
Transaction ReleaseAction
In general the domain of a parameter is specific to a web feature service implementation. For example the allowed values for the srsName parameter are dictated by the particular
transformations that a WFS supports. In some cases, however, a parameter domain is defined in this specification e.g. idgen. In such cases a web feature service may only
restrict the domain.
The following table defines constraints which may be specified be a web feature service in its capabilities document.
Table 7b – Operation constraints
Constraint Name Description
SupportsSOAP Specifies that the service can process requests
using HTTP POST and presented in a SOAP envelope as described in subclause 6.7.
DefaultMaxFeatures Specifies the default value for the maxFeatures
attribute of the GetFeature element. If the constraint is not specified then there is not limit
on the number of features that a GetFeature request may return.
LocalTraverseXlinkScope Defines the minimum and maximum number of
levels, when traversing local xlinks, that a WFS will try to resolve. The value means to as
many all levels. If the constrain is not specified then the WFS will attempt to resolve all levels.
RemoteTraverseXlinkScope Defines the minimum and maximum number of
levels, when traversing remote xlinks, that a WFS will try to resolve. The value means to
as many all levels. If the constrain is not specified then the WFS will attempt to resolve
all levels.
DefaultLockExpiry Define the default lock expiry time in minutes.
If the constraint is not specified then locks will be held indefinitely and would require
administrator intervention to clear them.
OpenGIS
©
Specification OGC 04-094
Copyright © Open Geospatial Consortium, Inc 2005
87 13.4 Exceptions
In the event that a web feature service encounters an error servicing a GetCapabilities request, it shall raise an exception as described in clause 7.7.
13.5 Examples
This example shows what a capabilities document might look like for a basic web feature service. To request a capabilities document, a client would issue the following
request:
?xml version=1.0 ? GetCapabilities
service=WFS xmlns=http:www.opengis.netwfs
xmlns:xsi=http:www.w3.org2001XMLSchema-instance xsi:schemaLocation=http:www.opengis.netwfs ..wfs1.1.0WFS.xsd
In response to such a request, a web feature service might generate a document that looks like:
?xml version=1.0 encoding=UTF-8? wfs:WFS_Capabilites
xmlns:ows=http:www.opengis.netows xmlns:ogc=http:www.opengis.netogc
xmlns:wfs=http:www.opengis.netwfs xmlns:gml=http:www.opengis.netgml
xmlns:xlink=http:www.w3.org1999xlink xmlns:xsi=http:www.w3.org2001XMLSchema-instance
xsi:schemaLocation=http:www.opengis.netwfs ..wfs.xsd version=1.1.0
updateSequence=0 -- ================================================================== --
-- SERVICE IDENTIFICATION SECTION -- -- ================================================================== --
ows:ServiceIdentification ows:ServiceTypeWFSows:ServiceType
ows:ServiceTypeVersion1.1.0ows:ServiceTypeVersion ows:TitleOGC Member WFSows:Title
ows:Abstract Web Feature Service maintained by NSDI data provider, serving
FGDC framework layer XXX; contact Paul.BunyonBlueOx.org ows:Abstract
ows:Keywords ows:KeywordFGDCows:Keyword
ows:KeywordNSDIows:Keyword ows:KeywordFramework Data Layerows:Keyword
ows:KeywordBlueOxows:Keyword ows:TypeStringows:Type
ows:Keywords ows:FeesNoneows:Fees
ows:AccessConstraintsNoneows:AccessConstraints ows:ServiceIdentification
-- ================================================================== -- -- SERVICE PROVIDER SECTION --
-- ================================================================== -- ows:ServiceProvider
ows:ProviderNameBlueOxows:ProviderName ows:ProviderSite
ows:ServiceContact ows:IndividualNamePaul Bunyonows:IndividualName
ows:PositionNameMythology Managerows:PositionName
OpenGIS
©
Specification OGC 04-094
Copyright © Open Geospatial Consortium, Inc 2005
88
ows:ContactInfo ows:Phone
ows:Voice1.800.BIG.WOODows:Voice ows:Facsimile1.800.FAX.WOODows:Facsimile
ows:Phone ows:Address
ows:DeliveryPointNorth Countryows:DeliveryPoint ows:CitySmall Townows:City
ows:AdministrativeAreaRural Countyows:AdministrativeArea ows:PostalCode12345ows:PostalCode
ows:CountryUSAows:Country ows:ElectronicMailAddressPaul.BunyonBlueOx.orgows:ElectronicMailAddress
ows:Address ows:OnlineResource xlink:href=http:www.BlueOx.orgcontactUs
ows:HoursOfService24x7ows:HoursOfService ows:ContactInstructions
eMail Paul with normal requsts; Phone Paul for emergency requests; if you get voice mail and your request cant wait,
contact another mythological figure listed on the contactUs page of our web site.
ows:ContactInstructions ows:ContactInfo
ows:RolePointOfContactows:Role ows:ServiceContact
ows:ServiceProvider -- ================================================================== --
-- OPERATIONS METADATA SECTION -- -- ================================================================== --
ows:OperationsMetadata ows:Operation name=GetCapabilities
ows:DCP ows:HTTP
ows:Get xlink:href=http:www.BlueOx.orgwfs ows:HTTP
ows:DCP ows:Parameter name=AcceptVersions
ows:Value1.1.0ows:Value ows:Value1.0.0ows:Value
ows:Parameter ows:Parameter name=AcceptFormats
ows:Valuetextxmlows:Value ows:Parameter
ows:Parameter name=Sections ows:ValueServiceIdentificationows:Value
ows:ValueServiceProviderows:Value ows:ValueOperationsMetadataows:Value
ows:ValueFeatureTypeListows:Value ows:ValueServesGMLObjectTypeListows:Value
ows:ValueSupportsGMLObjectTypeListows:Value ows:ValueFilter_Capabilitiesows:Value
ows:Parameter ows:Operation
ows:Operation name=DescribeFeatureType ows:DCP
ows:HTTP ows:Get xlink:href=http:www.BlueOx.orgwfswfs.cgi?
ows:Post xlink:href=http:www.BlueOx.orgwfswfs.cgi ows:HTTP
ows:DCP ows:Parameter name=outputFormat
ows:Valuetextxml; subtype=gml3.1.1ows:Value ows:Parameter
ows:Operation ows:Operation name=GetFeature
ows:DCP ows:HTTP
ows:Get xlink:href=http:www.BlueOx.orgwfswfs.cgi? ows:Post xlink:href=http:www.BlueOx.orgwfswfs.cgi
ows:HTTP