Ticket #15 (closed defect: fixed)
Insert transaction doesn't return id of features in the response
| Reported by: | nsavard | Owned by: | nsavard |
|---|---|---|---|
| Priority: | blocker | Version: | SVN |
| Keywords: | insert,response,fid | Cc: | adube@… |
| Triage Stage: | Unreviewed | State of Approval: | Proposed |
| Attached Patches: | None | Complexity: | Unknown |
| Compatibility: | Unknown | Specification: | Unnecessary |
Description
An Insert transaction could include in the response the Insert Result? section with the fid of the new features (I pasted the relevant XSD section below) (could because: minOccurs="0" maxOccurs="unbounded"). The actual version of Tinyows returns an fid named "id" if the "id" element is specified in the request. For example <feature:id>t0008</feature:id> in the request will be output as <wfs:InsertResults><wfs:Feature><ogc:FeatureId fid="layername.t0008"/></wfs:Feature></wfs:InsertResults>. The Insert Results? section is empty otherwise.
Open Layer? among others needs the fid of the newly inserted feature eventhough no "id" element is included in the request. We have to automate that in some sort.
<xsd:element name="Insert Result?"
type="wfs:InsertResultType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
The Insert Result? element contains a list of ogc:FeatureId elements that identify any newly created feature instances.
</xsd:documentation>
</xsd:annotation>
</xsd:element>