Select to view content in your preferred language

Python API

01-10-2018 07:24 AM
New Contributor II

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.

Tags (1)
2 Replies
MVP Emeritus

Mathis, I have move your query to‌ since it is more api than python

0 Kudos
New Contributor II

I figured out how to do it by using the Pandas Framework. 

0 Kudos