I have a layer of 15 polygons from a shapefile. I can access the features using Layer.GetFeature(i),<br>but not using Layer.GetNextFeature().<br><br>For example:<br>>>> polyFeature = pondsLayer.GetFeature(0)<br>>>> print polyFeature.GetFID()<br>
0<br>>>> polyFeature = pondsLayer.GetFeature(1)<br>>>> print polyFeature.GetFID()<br>1<br><br>>>> polyFeature = pondsLayer.GetFeature(0)<br>>>> print polyFeature.GetFID()<br>0<br>>>> polyFeature = pondsLayer.GetNextFeature()<br>
>>> print polyFeature.GetFID()<br>Traceback (most recent call last):<br> File "<pyshell#23>", line 1, in <module><br> print polyFeature.GetFID()<br>AttributeError: 'NoneType' object has no attribute 'GetFID'<br>
<br>Any suggestions?<br><br>Thanks.<br><br>Dave Verbyla<br>