WFS client post single geometry transactions to a multi geometry layer #22390
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
Author Name: Martin Hoegh (@mapcentia)
Original Redmine Issue: 14409
Affected QGIS version: 2.12.1
Redmine category:web_services_clients/wfs
In 2.12 QGIS the WFS client post features of type Polygon to a MultiPolygon layer. This happens when adding new features. Below is the schema of the tested WFS layer
<xsd:schema targetNamespace="http://mapcentia.com/syddjurs" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:gc2="http://www.mapcentia.com/gc2" xmlns:syddjurs="http://mapcentia.com/syddjurs" elementFormDefault="qualified" version="1.0">
<xsd:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
<xsd:import namespace="http://www.mapcentia.com/gc2" schemaLocation="http://cowi.mapcentia.com/xmlschemas/gc2.xsd"/>
<xsd:complexType name="kpplandk2_Type">
xsd:complexContent
<xsd:extension base="gml:AbstractFeatureType">
xsd:sequence
<xsd:element nillable="true" name="the_geom" label="the_geom" maxOccurs="1" type="gml:MultiPolygonPropertyType" minOccurs="0">
</xsd:element>
<xsd:element nillable="true" name="plannr" label="plannr" maxOccurs="1" minOccurs="0">
xsd:simpleType<xsd:restriction base="xsd:string"><xsd:minLength value="0"/><xsd:maxLength value="256"/></xsd:restriction></xsd:simpleType></xsd:element>
<xsd:element nillable="true" name="planid" label="planid" maxOccurs="1" minOccurs="0">
xsd:simpleType<xsd:restriction base="xsd:decimal"></xsd:restriction></xsd:simpleType></xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="kpplandk2" type="syddjurs:kpplandk2_Type" substitutionGroup="gml:_Feature"/>
</xsd:schema>
The text was updated successfully, but these errors were encountered: