The transaction operation is used to add, delete, or update features in a standard way. It uses GML and Filters. Versioning, attribution, security, diffs, and history are outside the scope of the specification, but it can certainly be expanded to deal with them, and The Open Planning Project is going to be investigating and implementing over the coming months. This section needs to be fleshed out more, but here are a few examples (from the WFS spec):
An insert of one feature:
<?xmlversion="1.0"?>
<wfs:Transaction
version="1.0.0"
service="WFS"
xmlns="http:
xmlns:gml="http:
xmlns:wfs="http:
xmlns:xsi="http:
xsi:schemaLocation="http:http:request=describefeaturetype&typename=INWATERA_1M.xsd
http:<wfs:Insert>
<INWATERA_1M>
<WKB_GEOM>
<gml:Polygongid="1" srsName="http:>
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates>-98.54,24.26...</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</WKB_GEOM>
<ID>150</ID>
<F_CODE>ABCDE</F_CODE>
<HYC>152</HYC>
<TILE_ID>250</TILE_ID>
<FAC_ID>111</FAC_ID>
</INWATERA_1M>
</wfs:Insert>
</wfs:Transaction>
An update of the feature identified by: BUILTUPA_1M.10131
<?xmlversion="1.0"?>
<wfs:Transaction
version="1.0.0"
service="WFS"
xmlns="http:
xmlns:ogc="http:
xmlns:wfs="http:
xmlns:xsi="http:
xsi:schemaLocation="http:>
<wfs:UpdatetypeName="BUILTUPA_1M">
<wfs:Property>
<wfs:Name>POPULATION</wfs:Name>
<wfs:Value>4070000</wfs:Value>
</wfs:Property>
<ogc:Filter>
<ogc:FeatureIdfid="BUILTUPA_1M.10131"/>
</ogc:Filter>
</wfs:Update>
</wfs:Transaction>
Delete all features in a given area:
<?xmlversion="1.0"?>
<wfs:Transaction
version="1.0.0"
service="WFS"
xmlns="http:
xmlns:wfs="http:
xmlns:gml="http:
xmlns:ogc="http:
xmlns:xsi="http:
xsi:schemaLocation="http:>
<wfs:DeletetypeName="INWATERA_1M">
<ogc:Filter>
<ogc:Within>
<ogc:PropertyName>WKB_GEOM</ogc:PropertyName>
<gml:Polygongid="pp9" srsName="http:>
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates>-95.7,38.1-97.8,38.2...</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</ogc:Within>
</ogc:Filter>
</wfs:Delete>
</wfs:Transaction>