[TinyOWS-dev] [tinyows] #15: Insert transaction doesn't return id
of features in the response
tinyows
trac at camptocamp.com
Thu Nov 20 16:15:10 EST 2008
#15: Insert transaction doesn't return id of features in the response
-------------------------------------+--------------------------------------
Reporter: nsavard | Owner: nsavard
Type: defect | Status: new
Priority: blocker | Version: SVN
Keywords: insert,response,fid | Stage: Unreviewed
Approval: Unnecessary | Patch: None
Complexity: Unknown | Compatibility: Unknown
Specification: Unnecessary |
-------------------------------------+--------------------------------------
An Insert transaction could include in the response the InsertResult
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
InsertResults section is empty otherwise.
OpenLayer 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="InsertResult"
type="wfs:InsertResultType"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
The InsertResult element contains a list of
ogc:FeatureId
elements that identify any newly created feature
instances.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
--
Ticket URL: <https://www.tinyows.org/trac/tinyows/ticket/15>
tinyows <https://www.tinyows.org/trac/tinyows>
TinyOWS
More information about the TinyOWS-dev
mailing list