OpenGIS
©
Specification OGC 04-094
Copyright © Open Geospatial Consortium, Inc 2005
72
ogc:GmlObjectId gml:id=InWaterA_1M.2001 ogc:Filter
wfs:Delete wfs:Transaction
Example
This examples deletes the set of feature instances of feature type InWaterA_1M that lie inside a region defined by a polygon specified in the predicate. The Filter element is
used to constrain the scope of the operation, and GML is used to express the geometry of the polygon.
?xml version=1.0 ? wfs:Transaction
version=1.1.0 service=WFS
xmlns=http:www.someserver.commyns xmlns:wfs=http:www.opengis.netwfs
xmlns:gml=http:www.opengis.netgml xmlns:ogc=http:www.opengis.netogc
xmlns:xsi=http:www.w3.org2001XMLSchema-instance xsi:schemaLocation=http:www.opengis.netwfs ..wfs1.1.0WFS.xsd
wfs:Delete typeName=InWaterA_1M ogc:Filter
ogc:Within ogc:PropertyNamewkbGeomogc:PropertyName
gml:Polygon gid=pp9 srsName=http:www.opengis.netgmlsrsepsg.xml63266405
gml:exterior gml:LinearRing
gml:posList-95.7 38.1 -97.8 38.2 ...gml:posList gml:LinearRing
gml:exterior gml:Polygon
ogc:Within ogc:Filter
wfs:Delete wfs:Transaction
12.3 Response
In response to a transaction request, a web feature service shall generate an XML document indicating the termination status of the transaction. In addition, if the
transaction request includes Insert operations, then the web feature service must report the feature identifiers of all newly created features.
The following XML Schema fragment defines the XML encoding of the WFS transaction response:
xsd:element name=TransactionResponse type=wfs:TransactionResponseType
xsd:complexType name=TransactionResponseType xsd:sequence
xsd:element name=TransactionSummary type=wfs:TransactionSummaryType
xsd:element name=TransactionResults type=wfs:TransactionResultsType minOccurs=0
xsd:element name=InsertResults type=wfs:InsertResultsType minOccurs=0
xsd:sequence xsd:attribute name=version
type=xsd:string use=required fixed=1.1.0 xsd:complexType
OpenGIS
©
Specification OGC 04-094
Copyright © Open Geospatial Consortium, Inc 2005
73
xsd:complexType name=TransactionSummaryType xsd:sequence
xsd:element name=totalInserted type=xsd:nonNegativeInteger
minOccurs=0 xsd:element name=totalUpdated
type=xsd:nonNegativeInteger minOccurs=0
xsd:element name=totalDeleted type=xsd:nonNegativeInteger
minOccurs=0 xsd:sequence
xsd:complexType xsd:complexType name=TransactionResultsType
xsd:sequence xsd:element name=Action type=wfs:ActionType
minOccurs=0 maxOccurs=unbounded xsd:sequence
xsd:complexType xsd:complexType name=ActionType
xsd:sequence xsd:element name=Message type=xsd:string
minOccurs=0 maxOccurs=1 xsd:sequence
xsd:attribute name=locator type=xsd:string use=required xsd:attribute name=code type=xsd:string use=optional
xsd:complexType xsd:complexType name=InsertResultsType
xsd:sequence xsd:element name=Feature
type=wfs:InsertedFeatureType maxOccurs=unbounded
xsd:sequence xsd:complexType
xsd:complexType name=InsertedFeatureType xsd:sequence
xsd:element ref=ogc:FeatureId maxOccurs=unbounded xsd:sequence
xsd:attribute name=handle type=xsd:string use=optional xsd:complexType
The TransactionResponse element contains a TransactionSummary element, an optional TransactionResult element and an optional InsertResults element.