Im using the Python API to access a feature layer on a portal. I want to pull out the X Y coordinates of the point feature. The problem I'm encountering is that I get different types back when I query from different servers (arcgis.features.layer.FeatureLayer and list)
What is best practice for accessing attributes from a featureclass through the python API? This is my current query:
coor = layer.query(return_all_records=True) - I can then loop through the results if it's a list. The problem is that I sometimes get arcgis.features.layer.FeatureLayer as a returned type.