How to add a new feature to a vectorlayer?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to add a new feature to a vectorlayer?

ccbo
hi,
I get a vectorlayer from postgresql, and I can delete a feature from the layer,but I can't add a new one to the layer? Could someone give my suggestions?thanks;
I think the problem is about the key field of the table,but I don't know how to resolve this problem.