[Qgis-developer] Error is QgsFeature API Documentation
Jürgen E. Fischer
jef at norbit.de
Tue Feb 14 13:31:27 PST 2017
Hi Calvin,
On Tue, 14. Feb 2017 at 14:28:14 -0500, C Hamilton wrote:
> Am I missing something here or is the second 'attribute' method invalid?
It's valid in C++ - in python there is only the method taking the index.
Alternatively you can pythonically access the attribute with feature[fieldname]
and feature[fieldindex] (also for assignment) and iterate the attributes [attr
for attr in feature].
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: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170214/18f118fc/attachment.sig>
More information about the Qgis-developer
mailing list