hn
Cc: qgis-developer
Subject: Re: [Qgis-developer] Python and strange results using
layer(.dataProvider()).getFeatures(...)
On 30 August 2016 at 23:52, Matthias Kuhn wrote:
> Hi Casper
>
> On 08/30/2016 02:59 PM, Casper Børgesen (CABO) wrote:
>> Hi Nathan
>>
>>
>&g
On 30 August 2016 at 23:52, Matthias Kuhn wrote:
> Hi Casper
>
> On 08/30/2016 02:59 PM, Casper Børgesen (CABO) wrote:
>> Hi Nathan
>>
>>
>>
>> Thanks for clarifying that, I’ll try to put my faith in the layer. My
>> question is then, why does the layer only respond with 2 features when I
>> ask i
Hi Casper
On 08/30/2016 02:59 PM, Casper Børgesen (CABO) wrote:
> Hi Nathan
>
>
>
> Thanks for clarifying that, I’ll try to put my faith in the layer. My
> question is then, why does the layer only respond with 2 features when I
> ask it for max 3 features, since 4 – 1 = 3?
>
I guess (no ver
living features?`
Regards, Casper
From: Nathan Woodrow [mailto:madman...@gmail.com]
Sent: 30. august 2016 14:50
To: Casper Børgesen (CABO)
Cc: QGIS Developer Mailing List
Subject: Re: [Qgis-developer] Python and strange results using
layer(.dataProvider()).getFeatures(...)
If you haven't save
If you haven't saved the layer after you did the delete the provider still
thinks there is 4 features. The layer itself and the edit buffer sit above
the data provider.
Generally you should trust the layer as it knows the state of the edit
buffer.
On Tue, Aug 30, 2016 at 10:32 PM, Casper Børgesen
Hi,
I have a point SHAPE layer with 4 points on a line (just to make them easy to
number in this example, and the layer is created in QGIS).
1. Start editing.
2. Delete point number 3.
3. In the python console do the following:
>>> len(list(iface.mapCanvas().currentLayer().