[Qgis-developer] Get starting point during add feature

francescoboccacci at libero.it francescoboccacci at libero.it
Fri Feb 27 07:20:30 PST 2015


Hi all,
I'm writing a plugin and i would like to get the first (starting point) vertex of a line vector feature  during editing.
The steps are:
1) enable a line vector to be editable
2)click on add feature button
3)When i click on mapcanvas to draw my first point, i would like to get the point and convert it into mapcoordinate

The scope of it is to add a feature (point feature - starting point) to a test point layer so i can 'Autosnap' my drawing feature to the starting point.
Anyone can help me?

Thanks

Francesco


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150227/2e249c04/attachment.html>


More information about the Qgis-developer mailing list