<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I'll just add that I have observed the same behaviour using a
GeoPackage based layer. It was during a teaching session with
10-15 students, so I can't remember exactly how and which editing
tool that was the cause of the error.</p>
<p>Windows 10 / QGIS 3.22.3<br>
</p>
<p> <br>
</p>
<pre class="moz-signature" cols="72">Med venlig hilsen / Kind regards
Bo Victor Thomsen</pre>
<div class="moz-cite-prefix">Den 01-04-2022 kl. 17:38 skrev Jörg
Höttges via QGIS-Developer:<br>
</div>
<blockquote type="cite"
cite="mid:f1af6dd2-22ef-6fa6-665b-aedc2c688f09@fh-aachen.de">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hi everyone, <br>
<div class="moz-forward-container"> <br>
I'm using QGIS 3.16 to 3.22. I created a table with multipolygon
objects in a SpatiaLite database. When editing one of the
polygons there appears a warning "Die Operation würden
Geometrietyp ändern" ("The operation would change geometry
type") and saving of the changings failes.<br>
<br>
Following are the objects before and after the modification: <br>
<br>
before editing: <br>
wkt_geom: MultiPolygon (((379698.83699999999953434
5709466.37000000011175871, 379705.34999999997671694
5709460.93499999959021807, 379703.7970000000204891
5709459.07600000035017729, 379697.34799999999813735
5709464.77400000020861626, 379698.83699999999953434
5709466.37000000011175871)))<br>
<br>
after adding the point (379701.02700000000186265
5709464.54299999959766865):<br>
wkt_geom: Polygon ((379701.02700000000186265
5709464.54299999959766865, 379705.34999999997671694
5709460.93499999959021807, 379703.7970000000204891
5709459.07600000035017729, 379697.34799999999813735
5709464.77400000020861626, 379698.83699999999953434
5709466.37000000011175871, 379701.02700000000186265
5709464.54299999959766865))<br>
<br>
how can I make sure that the type does not change due to
editing? The only idea i have is to remove or modify the
geometry constraint in the Spatialite database table for the
geometry column. The warning still appears but saving is
successful. <br>
<br>
Interesting fact: The problem didn't appear with QGIS 3.16.<br>
<br>
<div class="moz-signature">Many thanks for your help!<br>
<br>
Jörg Höttges<br>
<br>
-------<br>
<div class="org" style="margin-top:1em">FH Aachen<br>
University of Applied Sciences</div>
<div class="adr">
<div class="street-address">Bayernallee 9</div>
<div> <span class="postal-code"
style="display:inline;margin-right:0.2em">52066</span> <span
class="locality" style="display:inline">Aachen</span> |
<span class="country-name" style="display:inline;">Germany</span>
</div>
</div>
<a class="moz-txt-link-abbreviated"
href="http://www.fh-aachen.de/menschen/hoettges"
moz-do-not-send="true">www.fh-aachen.de/menschen/hoettges</a><br>
<br>
<br>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
</blockquote>
</body>
</html>