[OpenLayers-Dev] WFS-T and fid property

Denis Rykov rykovd at gmail.com
Mon Feb 14 11:18:31 EST 2011


Hi!
I'm not sure this right place for my message, but Ive discovered the
following problem.
I'm using Openlayers and WFS-T Server - TinyOWS. When I add new
features to layer and commit changes - I get answer from TinyOWS, for
example:


<?xml version='1.0' encoding='utf-8'?>
<wfs:WFS_TransactionResponse version="1.0.0"
 xmlns:wfs="http://www.opengis.net/wfs"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:ogc="http://www.opengis.net/ogc"
 xsi:schemaLocation='http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd'>
<wfs:InsertResult handle="TinyOWS-WFS-default-handle"><ogc:FeatureId
fid="views.157"/><ogc:FeatureId fid="views.158"/><ogc:FeatureId
fid="views.159"/></wfs:InsertResult>
<wfs:TransactionResult>
<wfs:Status><wfs:SUCCESS/></wfs:Status>
</wfs:TransactionResult>
</wfs:WFS_TransactionResponse>

But only one (the first) of newly created feature of layer in
OpenLayers contains fid property, another feature have fid value =
null. Is this problem of OpenLayer or TinyOWS. Could anyone confirm
described behavior? Now I'm using refresh() method of layer, but I
guess this is not best way.


More information about the Dev mailing list