i am trying to iterate the features from a feature service within ArcGIS Pro Notebook
this is my code and it seems to connect to the feature service and returns the name correctly
items = gis.content.search('title:LiveData owner:xyz', 'feature layer')
OP1item = items[0]
PLS = OP1item.layers[11]
print(PLS.properties["name"])xxSection
but when i try and iterate it
for x in PLS:
print(x)i get this error:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
In [35]:
Line 3: for x in PLS:
TypeError: 'FeatureLayer' object is not iterable
---------------------------------------------------------------------------
any ideas what i'm doing wrong?