Database Reference
In-Depth Information
For example, when adding a point, you will see that an Insert request is sent to
WFS-T.ThefollowingXMLissenttotheservice(notehowthepointgeometryisin-
serted in the body of the <wfs:Insert> element):
<wfs:Transaction
xmlns:wfs="http://www.opengis.net/wfs"
service="WFS" version="1.1.0"
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance">
<wfs:Insert>
<feature:sites
xmlns:feature="http://www.packtpub.com/
postgis-cookbook/book">
<feature:the_geom>
</feature:the_geom>
</feature:sites>
</wfs:Insert>
</wfs:Transaction>
The <wfs:TransactionResponse> response,asshowninthefollowingcode,will
be sent from WFS-T if the process has transpired smoothly and the features have
been stored (note that the <wfs:totalInserted> element value in this case is
set to 1 , as only one feature was stored):
<?xml version="1.0" encoding="UTF-8"?>
<wfs:TransactionResponse version="1.1.0"
...[CLIP]... >
<wfs:TransactionResults/>
<wfs:InsertResults>
<wfs:Feature>
<ogc:FeatureId fid="sites.17"/>
</wfs:Feature>
</wfs:InsertResults>
</wfs:TransactionResponse>
Search WWH ::




Custom Search