wfs:Transaction
This is the root element for a Transaction request. A transaction request allows insert, update and delete operations to be performed to create, change or remove feature instances.
Element information
Namespace: http://niem.gov/niem/external/ogc-wfs/1.1.0/dhs-gmo/1.0.0
Schema document: external/ogc-wfs/1.1.0/dhs-gmo/1.0.0/wfs.xsd
Type: wfs:TransactionType
Properties: Global, Qualified
Content
- Sequence [1..1]
- ows:AcceptVersions [0..1] When omitted, server shall return latest supported version.
- ows:Sections [0..1] When omitted or not supported by server, server shall return complete service metadata (Capabilities) document.
- ows:AcceptFormats [0..1] When omitted or not supported by server, server shall return service metadata document using the MIME type "text/xml".
- wfs:LockId [0..1] In order for a client application to operate upon locked feature instances, the Transaction request must include the LockId element. The content of this element must be the lock identifier the client application obtained from a previous GetFeatureWithLock or LockFeature operation. If the correct lock identifier is specified the Web Feature Service knows that the client application may operate upon the locked feature instances. No LockId element needs to be specified to operate upon unlocked features.
- Choice [0..*]
- wfs:Insert The Insert element is used to indicate that the Web Feature Service should create a new instance of a feature type. The feature instance is specified using GML3 and one or more feature instances to be created can be contained inside the Insert element.
- wfs:Update One or more existing feature instances can be changed by using the Update element.
- wfs:Delete The Delete element is used to indicate that one or more feature instances should be removed from the feature repository.
- wfs:Native Many times, a Web Feature Service interacts with a repository that may have special vendor specific capabilities. The native element allows vendor specific command to be passed to the repository via the Web Feature Service.
from type ows:GetCapabilitiesType
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
updateSequence | [0..1] | ows:UpdateSequenceType | When omitted or not supported by server, server shall return latest complete service metadata document. | from type ows:GetCapabilitiesType |
releaseAction | [0..1] | wfs:AllSomeType | The releaseAction attribute is used to control how a Web Feature service releases locks on feature instances after a Transaction request has been processed. Valid values are ALL or SOME. A value of ALL means that the Web Feature Service should release the locks of all feature instances locked with the specified lockId regardless or whether or not the features were actually modified. A value of SOME means that the Web Feature Service will only release the locks held on feature instances that were actually operated upon by the transaction. The lockId that the client application obtained shall remain valid and the other, unmodified, feature instances shall remain locked. If the expiry attribute was specified in the original operation that locked the feature instances, then the expiry counter will be reset to give the client application that same amount of time to post subsequent transactions against the locked features. |
Sample instance
<wfs:Transaction> <ows:AcceptVersions> <ows:Version>string</ows:Version> </ows:AcceptVersions> <ows:Sections> <ows:Section>string</ows:Section> </ows:Sections> <ows:AcceptFormats> <ows:OutputFormat>string</ows:OutputFormat> </ows:AcceptFormats> <wfs:LockId>string</wfs:LockId> <wfs:Insert> <mo:MovingObject> <gml:metaDataProperty>... </gml:metaDataProperty> <gml:description>string</gml:description> <gml:name>string</gml:name> <gml:boundedBy>... </gml:boundedBy> <mo:geometryProperty>... </mo:geometryProperty> <gml:validTime>... </gml:validTime> <mo:track>... </mo:track> <gml:dataSource>string</gml:dataSource> </mo:MovingObject> </wfs:Insert> </wfs:Transaction>