[Qgis-developer] Remove Feature

Denis Rouzaud denis.rouzaud at gmail.com
Thu Mar 1 05:50:36 EST 2012


This is strange, I have successfully use the deleteFeatures from the 
dataProvider

here at line 103
https://github.com/3nids/Triangulation/blob/2b90973a34f835ac3564204dcbccc573bcff274a/triangulation.py


same for addFeatures.

Which version of Qgis are you using?



On 03/01/2012 11:38 AM, Alexandre Badez wrote:
> Hi,
>
> Yep, I did, and it did not work..
> I post a longer message here:
> http://forum.qgis.org/viewtopic.php?f=5&t=10121&sid=e816f9d2b714e6959b4cdf4074839b97
>
> On Thu, Mar 1, 2012 at 11:37, Denis Rouzaud<denis.rouzaud at gmail.com>  wrote:
>> Hi,
>>
>> Did you try deleteFeatures from dataProvider or deleteFeature from
>> vectorLayer ?
>>
>> On 03/01/2012 10:54 AM, Alexandre Badez wrote:
>>> Hi everyone,
>>>
>>> I would like to remove feature in a vector layer, but the
>>> deleteFeatures do not seems to work.
>>>
>>> Is it a bug ? How can I do this ?
>>>
>>> How should I handle features ids ?
>>>
>>> Thanks.
>>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120301/f31ae110/attachment.html


More information about the Qgis-developer mailing list