[QGIS-Developer] Message "The operation would change the geometry type." ?

Julien Cabieces julien.cabieces at oslandia.com
Wed Dec 21 01:01:18 PST 2022


Hi,

The avoid intersection option can be configured from the Snapping
Toolbar. There is a menu where you can choose between Allow overlap
(nothing happen, no message) and other options which can eventually
trigger this message.

It seems that "Allow overlap" is the default, so the user may have changed
it.

Regards,
Julien


> Hi Devs,
>
> A friend, while editing a vector layer, got the message: "The operation would change the geometry type." while editing a 'standalone' layer, and asked me what it was...
>
> Today somebody in the Telegram channel asked the same.
>
> I grepped:
> https://github.com/qgis/QGIS/blob/master/src/app/vertextool/qgsvertextool.cpp#L2410
>
> which points to:
> https://github.com/qgis/QGIS/blob/master/src/core/geometry/qgsgeometry.h#L2401-L2414
>
> but what I'm trying to find out is what kind of test QGIS is doing in the vertextool, if you do not have any relations in your project (or at least are not aware of it...)
>
> cpp docs tell me: "Modifies geometry to avoid intersections with the layers specified in project properties"
> But I cannot find something with 'avoid' or 'intersection' in my Project properties.
>
> So question: is this a message which should not be there (because it pops up at people which are not aware of anything).
> Or is there a property on True by default which make QGIS do tests, even on 1 layer?
>
> Thanks for any input,
>
> Richard Duivenvoorde
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the QGIS-Developer mailing list