On Sun, Feb 3, 2013 at 9:40 PM, francescobocca...@libero.it
francescobocca...@libero.it wrote:
Hi Nathan,
i tired with the name of the field:
idVar = inFeat[field]
KeyError: 'type'
field is the name of field (in this case 'type').
Both access by index and by field name should work - if
On Mon, Feb 4, 2013 at 9:20 AM, francescobocca...@libero.it
francescobocca...@libero.it wrote:
Hi Martin,
this is my code:
vproviderA = vlayerA.dataProvider()
allAttrsA = vproviderA.attributeIndexes() #vettore contente tutti
gli indici dei campi
try:
Hi Martin,
thanks for your answer. I receive another type of error:
/home/francesco/.qgis//python/plugins/sextante_animove/href.py, line 126, in
processAlgorithm
idVar = inFeat[index]
KeyError: '0'
where is the problem?
Thanks
Francesco
Messaggio originale
Da: wonder...@gmail.com
You need to pass the name of the column not the the index:
idVar = inFeat[somefeildname]
- Nathan
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer