<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
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>
</body>
</html>