2

I'm new in QGIS world :)

I would like to have an auto-completion script within the editing form on QGiS. When editing a point features with QGIS form, I would like the script to identify the list of features (polygons) falling under this coordinates and to put their ID in a dedicated field of the feature which is edited.

I have no idea what would be the easiest way to it without reinventing the wheel!

so the steps are : I start the editing of a point feature in the QGIS Form, the script gets the list of polygon features under the coordinates and fills in a myPolygons fields with their IDs...

  • You are looking for a spatial join. You can perform it within the field calculator of qgis. I think this will give you an idea: youtube.com/watch?v=aMEhdW6rvB4 – Javier JC Jun 23 at 14:29
  • Thank you Javier, Yes this works in asynchrone mode for already existing features. what about, whithin the editing action please? that means while i have the new feature editing form open and whenever I reclick again to adjust the feature coordinates. – MGALLES Jun 23 at 14:51
  • Are you using a custom edit form? like this examples? gis.stackexchange.com/a/22459/138363 . If this is the case, maybe it is a good idea to add information on how you are building it and add something like "custom edit form" in the question title. – Javier JC Jun 23 at 15:58
  • Hello Javier Thank you man. Definitly to use the QGIS Native edit form. Spatial joint is the spirit of my need except the fact that it requires a specif action after the editing. It would be great to have a solution working in "real time" while the editing foorm is open. So if any idea rises up it will be great! Many thanks for taking some time helping me! – MGALLES Jun 29 at 11:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.