Hello,
I do not have any code, but I question is can you use python to import data from a ESRI Server connection into a File Geodatabase? For example, if I add the data from the Server into my workspace and use the code:
arcpy.conversion.FeatureClassToGeodatabase("Regions",r"C:\Users\name\Documents\ArcGIS\Projects\
COData\CODData.gdb")
NOTE: The code is one line, its two here because it fit better.
Works fine, but I would like to find a way to connect to the server and then automate the import for either all or a specific feature class(es). Any input would be greatly appreciated. Thank you in advance
You can write a custom python script using arcpy. Please look into the arcpy api help for more information.
ListFeatureClasses—ArcGIS Pro | Documentation
ListTables—ArcGIS Pro | Documentation
Marcelo,
Thank you, that is what I am trying to do, I have scripts for importing, and other work using arcpy. I am just not sure of the way to create one that pulls the data from a server connection. For example, if I pull the data down into a workspace in Arc, I can then use a script to import it into a GDB, but I cannot figure out how to import from the connection that is in ArcCatalog.
Python is the world's easiest computer language to learn.
Automating ArcGIS loading is as simple as:
That's it. Of course, there are many levels of complexity available with a programming language as powerful as Python, but you can start that next week.
- V
Sir,
Thank you, I understand, which I am learning. The issue is not so much Python, but what function to use to import data from a server connection into a GDB. Thank you again.