[Qgis-developer] attributeIndexes

Jürgen E. Fischer jef at norbit.de
Thu Jan 22 11:52:15 PST 2015


Hi Hugo,

On Thu, 22. Jan 2015 at 17:59:45 +0100, Hugo Mercier wrote:
> What is the intention behind QgsVectorDataProvider::attributeIndexes() ?
 
> It is used in very few places. It returns a list of integers ... and if
> I am correct will always return a list [0 ... n-1] if n is the number of
> fields. I don't really get the point ...

> Was there something else planned initially ? Something related to
> (database) indexes ?

Probably just the opposite.  The attributes used to be kept in a map and not an
array and attributeIndexes returned the keys.


Jürgen

-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden             http://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode                         
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150122/1ed9fae0/attachment-0001.pgp>


More information about the Qgis-developer mailing list