[Qgis-user] plugin help

Richard Duivenvoorde rdmailings at duif.net
Thu Jul 12 01:27:56 PDT 2012


On 07/12/2012 09:16 AM, chathura silva wrote:
> Is there any way to change it to editable mode ?

Please describe your problem a little more instead of one sentence 
questions, for others it also costs time to answer your question.

If you mean 'is it possible for a python plugin to set a layer in the 
modus editing' the answer is:

yes

but I think you also would like to see some pointers (after you tried to 
google a little ;-) ):

Have a look here:

http://qgis.org/pyqgis-cookbook/vector.html#modifying-vector-layers

I'm also setting a layer into editing mode, see

http://hub.qgis.org/projects/xytools/repository/revisions/a249004832f44334f9861483ff9d4da08bb91e81/entry/xytools.py

at line 334

Regards,

Richard Duivenvoorde





More information about the Qgis-user mailing list