OpenGIS
©
Specification OGC 04-094
Copyright © Open Geospatial Consortium, Inc 2005
110
SERVICE=WFS VERSION=1.1.0
REQUEST=LockFeature FEATUREID=RoadL_1M.1013
Example 3
The following example locks all feature instances of feature type InWaterA_1M and BuiltUpA_1M.
http:www.someserver.comwfs.cgi? SERVICE=WFS
VERSION=1.1.0 REQUEST=LockFeature
TYPENAME=InWaterA_1M,BuiltUpA_1M
Example 4
The following example locks all features of feature type InWaterA_1M and BuiltUpA_1M that lie INSIDE a user specified region of interest.
http:www.someserver.comwfs.cgi? SERVICE=WFS
VERSION=1.1.0 REQUEST=LockFeature
LOCKACTION=ALL TYPENAME=INWATER_1M,BuiltUpA_1M
FILTER=FilterWithinPropertyNamewkbGeomPropertyNamegml:Envelope gml:lowerCorner10 10gml:lowerCorner
gml:upperCorner20 20gml:upperCornergml:EnvelopeWithin Filter
FilterWithinPropertyNamewkbGeomPropertyNamegml:Envelope gml:lowerCorner10 10gml:lowerCorner
gml:upperCorner20 20gml:upperCornergml:EnvelopeWithin Filter
14.7.6 Transaction operation
The only supported operation of the transaction interface is the DELETE operation. Expressing INSERT or UPDATE requests, which can be quite lengthy, is not convenient
using keyword-value pair encoding.
14.7.6.1 Request
Table 11 – Transaction encoding
URL Component OM
DEFAULT Description
REQUEST=Transaction M
The name of the WFS request. OPERATION=Delete
M Transaction operation to execute.
Currently only Delete is defined. TYPENAME
Optional if FEATUREID is specified. M
A list of feature types upon which to apply the operation.
RELEASEACTION=[ALL|SOME] O
A value of ALL indicates that all feature locks should be released when
a transaction terminates. A value of SOME indicates that only those
records that are modified should be released. The remaining locks are
maintained
OpenGIS
©
Specification OGC 04-094
Copyright © Open Geospatial Consortium, Inc 2005
111
FEATUREID Mutually exclusive with FILTER and
BBOX O
A list of feature identifiers upon which the specified operation shall be
applied. Optional.
No default. FILTER
Prerequisite: TYPENAME Mutually exclusive with FEATUREID
and BBOX O
A filter specification describes a set of features to operate upon. The format of
the filter is defined in the Filter Encoding Specification [3]. If the
FILTER parameter is used, one filter must be specified for each feature
type listed in the TYPENAME parameter. Individual filters encoded
in the FILTER parameter are enclosed in parentheses and .
BBOX Prerequisite: TYPENAME
Mutually exclusive with FILTER and FEATUREID
O In lieu of a FEATUREID or FILTER,
a client may specify a bounding box as described in subclause 13.3.3.
14.7.6.2 Examples Example 1
Delete the feature instance identified by RoadL_1M.1013.
http:www.someserver.comwfs.cgi? SERVICE=WFS
VERSION=1.1.0 REQUEST=Transaction
OPERATION=Delete FEATUREID=RoadL_1M.1013
Example 2
The following example deletes all features of type InWaterA_1M and BuiltUpA_1M that lie INSIDE the specified box.
http:www.someserver.comwfs.cgi? SERVICE=WFS
VERSION=1.1.0 REQUEST=Transaction
OPERATION=Delete TYPENAME=InWaterA_1M,BuiltUpA_1M
FILTER=FilterWithinPropertyNameInWaterA_1MwkbGeomPropertyName gml:Envelope
gml:lowerCorner10 10gml:lowerCorner gml:upperCorner20 20gml:upperCornergml:EnvelopeWithin
Filter FilterWithinPropertyNameBuiltUpA_1MwkbGeom PropertyNamegml:Envelopegml:lowerCorner10 10gml:lowerCorner
gml:upperCorner20,20gml:upperCorner gml:EnvelopeWithinFilter
Example 3
The following example is the same as Example 2, except that the BBOX parameter is used to specify the spatial constraint on the Delete command.