Book Image

ArcPy and ArcGIS - Second Edition

By : Silas Toms, Dara OBeirne
Book Image

ArcPy and ArcGIS - Second Edition

By: Silas Toms, Dara OBeirne

Overview of this book

ArcGIS allows for complex analyses of geographic information. The ArcPy module is used to script these ArcGIS analyses, providing a productive way to perform geo-analyses and automate map production. The second edition of the book focuses on new Python tools, such as the ArcGIS API for Python. Using Python, this book will guide you from basic Python scripting to advanced ArcPy script tools. This book starts off with setting up your Python environment for ArcGIS automation. Then you will learn how to output maps using ArcPy in MXD and update feature class in a geodatabase using arcpy and ArcGIS Online. Next, you will be introduced to ArcREST library followed by examples on querying, updating and manipulating ArcGIS Online feature services. Further, you will be enabling your scripts in the browser and directly interacting with ArcGIS Online using Jupyter notebook. Finally, you can learn ways to use of ArcPy to control ArcGIS Enterprise and explore topics on deployments, data quality assurances, data updates, version control, and editing safeguards. By the end of the book, you will be equipped with the knowledge required to create automated analysis with administration reducing the time-consuming nature of GIS.
Table of Contents (13 chapters)
8
Introduction to ArcGIS Online

Putting it all together

Everything that we have gone over in this chapter was to build the foundation of knowledge required to use Python and ArcPy to access ArcGIS Online web services. We reviewed the ArcGIS Online REST API, URL parameters, feature sets, and ArcGIS Online tokens. Now we will be using all these components to build a script that will take the location of points from ArcGIS Online and update the location of those points in a file geodatabase. Let’s say you are a water utility and you have staff in the field updating the location and/or attribute information of your fire hydrant data. This is a useful way to automatically update your on-premise data with the data collected in the field. A lot of utility organizations consider their data sensitive and unless you have an ArcGIS Server setup in a DMZ environment, you may have to use ArcGIS Collector with ArcGIS...