Open larseggan opened 9 years ago
Dear @larseggan, thanks for posting your finding. The best way to get support from the community is sending a question to the deegree-users mailing list. I will keep this issue open since you are describing a bug. Can you please give some more information such as the example request you mentioned? That would help a lot.
The example I used was based on the deegree INSPIRE Demo. I followed the steps here to set up the SQL Feature store: http://download.deegree.org/documentation/3.3.14/html/featurestores.html#anchor-mapping-wizard. My transaction test:
<wfs:Update typeName="ad:Address">
<wfs:Property>
<wfs:ValueReference action="insertAfter">ad:component</wfs:ValueReference>
<wfs:Value>
<ad:AddressAreaName xmlns:ad="urn:x-inspire:specification:gmlas:Addresses:3.0" gml:id="AD_ADDRESSAREANAME_7c731613-fefd-4226-ba20-ada5560b09b8">
<ad:beginLifespanVersion xsi:nil="true" nilReason="UNKNOWN"/>
<ad:endLifespanVersion xsi:nil="true" nilReason="UNKNOWN"/>
<ad:validFrom xsi:nil="true" nilReason="UNKNOWN"/>
<ad:validTo xsi:nil="true" nilReason="UNKNOWN"/>
<ad:name>
<gn:GeographicalName xmlns:gn="urn:x-inspire:specification:gmlas:GeographicalNames:3.0">
<gn:language>nld</gn:language>
<gn:nativeness>Endonym</gn:nativeness>
<gn:nameStatus>Official</gn:nameStatus>
<gn:sourceOfName>Het Kadaster, Nederland</gn:sourceOfName>
<gn:spelling>
<gn:SpellingOfName>
<gn:text>Bovenkarspel</gn:text>
<gn:script>Latn</gn:script>
</gn:SpellingOfName>
</gn:spelling>
</gn:GeographicalName>
</ad:name>
<ad:namedPlace xsi:nil="true"/>
</ad:AddressAreaName>
</wfs:Value>
</wfs:Property>
<fes:Filter>
<fes:ResourceId rid="AD_ADDRESS_22362452-a906-4c68-9f88-f839c57019cc"/>
</fes:Filter>
</wfs:Update>
I have set up a WFS-Transaction server with deegree 3.3.14 (SQL Feature store, WFS 2.0.0). A wfs:Update on a feature with association to another feature (xlink:href) with multiplicity 0..* will not work. I have tested on INSPIRE Addresses, using the INSPIRE example data. I'm trying to add a new node (ad:component of type ad:AddressAreaName) to an existing feature of ad:Address using wfs:Update with action "insertAfter". Anyone tried this? Any tip?
Thanks, Lars