Select to view content in your preferred language

Python API

732
2
01-10-2018 07:24 AM
MathisGaarde_Kristensen
Emerging Contributor

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
DanPatterson_Retired
MVP Emeritus

Mathis, I have move your query to https://community.esri.com/groups/arcgis-python-api?sr=search&searchId=c466574f-198a-4810-9a7f-3a2da...‌ since it is more api than python

0 Kudos
MathisGaarde_Kristensen
Emerging Contributor

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

0 Kudos