Prevent moving a vector layer

Good morning,

I work on the field with teams who have to take points from a vector layer. I would like to know if it is possible to have an adjustable parameter that prevents the movement of a vector entity because it is active directly after selecting an entity. I would like them to be able to modify attribute table settings but not be able to move the points. Or in another case, if there is a parameter which shows that an entity has been moved and we can configure this from the form, that would be interesting, especially with the new $x and $y coordinates. Has anyone faced this problem and found a solution?

Thanks,

Jean-Philippe


Imported from GitHub discussion by @Jipforester on 2024-07-06T09:56:23Z

Jipforester , have you tried the ‘lock geometry’ option for a given vector layer:

You need the QGIS qfieldsync plugion to configure that. Sounds like what you are looking for.


Imported from GitHub comment by @nirvn on 2024-07-06T11:32:32Z

Hello Nirvn,

I have tried your solution and yes it works, my points (trees) can not move !

Thank you very much !


Imported from GitHub comment by @Jipforester on 2024-07-06T13:29:47Z