[Qgis-developer] R: Re: R: Re: attributeMap()
francescoboccacci at libero.it
francescoboccacci at libero.it
Sun Feb 3 12:40:09 PST 2013
Hi Nathan,i tired with the name of the field:
p, li { white-space: pre-wrap; field idVar = inFeat[field]
KeyError: 'type'
field is the name of field (in this case 'type').What am i wrong?Thanks
Francesco
----Messaggio originale----
Da: madmanwoo at gmail.com
Data: 03/02/2013 1.20
A: "francescoboccacci at libero.it"<francescoboccacci at libero.it>
Cc: "Martin Dobias"<wonder.sk at gmail.com>, "qgis-developer at lists.osgeo.org"<qgis-developer at lists.osgeo.org>
Ogg: Re: [Qgis-developer] R: Re: attributeMap()
You need to pass the name of the column not the the index:
idVar = inFeat["somefeildname"]
- Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130203/cba070d9/attachment.html>
More information about the Qgis-developer
mailing list