![arcgis api arcgis api](https://www.esri.com/arcgis-blog/wp-content/uploads/2017/07/sunflower_diagram.jpg)
What I hope it demonstrates, though, is how, with a few lines of Python, some powerful automations can be achieved.
ARCGIS API CODE
Of course, these are just some simple examples, and even with these, I’m skipping over many of the nuances to the code I’m presenting.
ARCGIS API PRO
The Python Notebooks created in ArcGIS Pro can be shared with colleagues, and better still be saved and executed directly on ArcGIS Online even without ArcGIS Pro. You can create and maintain Groups, share content, manage your Movers/Joiners/Leavers, and keep an eye on what is and isn’t being used regularly in your Organisation. This is just the tip of the iceberg in terms of automating administration of your ArcGIS Portal. So, how do you access Python from within ArcGIS Pro? Python and a Jupyter Notebooks environment are both installed along with ArcGIS Pro, and while you can enhance your environment, you can get a lot done and explore many areas with what comes out-of-the-box. Well you’ll be glad to know that if you are an existing ArcGIS Pro user, there are no additional installations or configurations required to get started. Hopefully you can find answers to your questions there, or even contribute some of your code and experiences.įirst up, though, how do you get started? There’s a lot of community support, both for Python in general and for the ArcGIS API for Python. The aim is to demonstrate the ease of use of the language and its environment, and to encourage you to explore some more complex use cases. In this post I’m going to concentrate on using Python, and the ArcGIS API for Python from within ArcGIS Pro to automate administration tasks for your ArcGIS Online or ArcGIS Enterprise. There are many supporting libraries which extend the core functionality of Python in all manner of areas, for example, Machine Learning, Data Science, Image Manipulation, Graphing, and, of course, GIS. Python can be written as procedural or object-oriented code. The language design encourages code readability (the use of whitespace, for example, has significant meaning within the code).
ARCGIS API PROFESSIONAL
Python also has the benefits of a low barrier for entry and ease of use, but enjoys wide spread support among professional and casual developers alike (as of December 2020 Python ranked third in TIOBE's index of most popular programming languages, behind C and Java).
![arcgis api arcgis api](https://www.esri.com/arcgis-blog/wp-content/uploads/2018/11/jsapi-react-card.jpg)
However, when your workflows got more complex and your VBA codebase grew over several iterations of enhancements and improvements, the cracks started to show, and maintaining complex VBA became troublesome.Įsri, along with many in the wider IT industry, have embraced Python as the customisation language of choice. While VBA is largely frowned upon by professional developers (according to Wikipedia, VBA has held its position as "most dreaded" language for developers for the last 2 years) its strength lay in its low barrier for entry and ease of use. Many experienced users will have used Visual Basic for Applications in ArcMap to author custom workflows for both GIS and GIS administration tasks.
![arcgis api arcgis api](https://esriaustraliatechblog.files.wordpress.com/2021/11/mehdipira1_0-1636077173116.png)
Automation has always been a great bonus for the GIS professional using Esri’s ArcGIS tools.