Re: [Qgis-developer] new vector api select features

2013-02-28 Thread Martin Dobias
Hi Marco On Wed, Feb 27, 2013 at 9:57 AM, Marco Bernasocchi wrote: > On Wed, Feb 6, 2013 at 9:53 AM, Richard Duivenvoorde > wrote: >> THANKS! for this very thorough answer! I think it would be a pity to let >> it >> rest here in the dev-list, we should put it somewhere in he cookbook/wiki >> I >

Re: [Qgis-developer] new vector api select features

2013-02-27 Thread Marco Bernasocchi
On 02/27/2013 09:57 AM, Marco Bernasocchi wrote: On Wed, Feb 6, 2013 at 9:53 AM, Richard Duivenvoorde wrote: > THANKS! for this very thorough answer! I think it would be a pity to let it > rest here in the dev-list, we should put it somewhere in he cookbook/wiki I Hi Martin and Richard, I'm j

Re: [Qgis-developer] new vector api select features

2013-02-27 Thread Marco Bernasocchi
On Wed, Feb 6, 2013 at 9:53 AM, Richard Duivenvoorde wrote: > THANKS! for this very thorough answer! I think it would be a pity to let it > rest here in the dev-list, we should put it somewhere in he cookbook/wiki I Hi Martin and Richard, I'm just teaching some plugin stuff and I remembered t

Re: [Qgis-developer] new vector api select features

2013-02-06 Thread Martin Dobias
On Wed, Feb 6, 2013 at 9:53 AM, Richard Duivenvoorde wrote: > THANKS! for this very thorough answer! I think it would be a pity to let it > rest here in the dev-list, we should put it somewhere in he cookbook/wiki I > think. > > Bringing me to the question: how to handle the versioning in the cook

Re: [Qgis-developer] new vector api select features

2013-02-06 Thread Richard Duivenvoorde
On 05-02-13 22:51, Martin Dobias wrote: Hi Richard On Tue, Feb 5, 2013 at 7:27 PM, Richard Duivenvoorde wrote: Hi Devs, I used the following in a python plugin to select features: self.provider.select(self.provider.attributeIndexes(), mapCanvasExtent, True, True) is there somewhere an examp

Re: [Qgis-developer] new vector api select features

2013-02-05 Thread Martin Dobias
Hi Richard On Tue, Feb 5, 2013 at 7:27 PM, Richard Duivenvoorde wrote: > Hi Devs, > > I used the following in a python plugin to select features: > > self.provider.select(self.provider.attributeIndexes(), mapCanvasExtent, > True, True) > > is there somewhere an example how to do this in the new a

[Qgis-developer] new vector api select features

2013-02-05 Thread Richard Duivenvoorde
Hi Devs, I used the following in a python plugin to select features: self.provider.select(self.provider.attributeIndexes(), mapCanvasExtent, True, True) is there somewhere an example how to do this in the new api using QgsFeatureIterator QgsOgrProvider::getFeatures( const QgsFeatureRequest&