mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Add __iter__ for QgsFeature
This commit is contained in:
parent
8de00c10cc
commit
20e274a413
@ -116,6 +116,12 @@ class QgsFeature
|
||||
|
||||
public:
|
||||
|
||||
SIP_PYOBJECT __iter__();
|
||||
%MethodCode
|
||||
PyObject *attrs = sipConvertFromType( &sipCpp->attributes(), sipType_QgsAttributes, Py_None );
|
||||
sipRes = PyObject_GetIter(attrs);
|
||||
%End
|
||||
|
||||
SIP_PYOBJECT __getitem__(int key);
|
||||
%MethodCode
|
||||
const QgsAttributes& attrs = sipCpp->attributes();
|
||||
|
Loading…
x
Reference in New Issue
Block a user