Python to connect to service

84
1
11-07-2019 05:15 PM
JasonCarter1
New Contributor III

Hi,

I'm trying to find a tutorial or guidance on how to use python to connect to a service end point. I have connected to the server linked below in ArcGIS Pro. I would like to use python to iterate over the features in the service:

https://map.dfg.ca.gov/arcgis/services 

I'm not sure where to begin. Could someone point me in the right direction? 

Thank you!

Tags (2)
Reply
0 Kudos
1 Reply
ShaunWalbridge
Esri Regular Contributor

Hello Jason,

You have a few options. If you just want to work directly with the services themselves, the ArcGIS API for Python is part of Pro, and is a nice way to work with the data hosted over a REST endpoint: Using Feature Layers | ArcGIS for Developers 

You also can call any GP tool from ArcPy, and then interact with the data as you would any other data with ArcPy. Both options work well, depending on what you're trying to do and what level of granularity you're working with.

Cheers,

Shaun

Reply
0 Kudos