Ticket #1885 (closed defect: fixed)
OGR Features don't have a 'keys()', 'items()' interface
|Reported by:||crschmidt||Owned by:||hobu|
|Component:||SWIG (all bindings)||Version:||unspecified|
It would be nice to be able to do:
for key, value in feature.items():
print key, value
for key in feature.keys() would be handy as well.
If neither of these is possible, a method to return a list of the keys which can be passed to getattr:
ould be good.