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)
Introduction to ArcGIS Online

What this book covers

Chapter 1, Introduction to Python for ArcGIS, covers basic Python syntax and tools, and introduces the ArcPy code library along with other useful modules.

Chapter 2, Creating the First Python Script, takes the user from the ArcGIS ModelBuilder environment, where they model a geospatial analysis and export it as an ArcPy script.

Chapter 3, ArcPy Cursors - Search, Insert, and Update, explores the use of cursors or code tools used to programmatically create, update, and access location data.

Chapter 4, ArcPy Geometry Objects and Cursors, explains the use of cursors and geometry objects, which are ArcPy classes used to perform geospatial analysis in custom scripts.

Chapter 5, Creating a Script Tool, demonstrates how to create a custom ArcToolbox script tool with a graphical user interface that can be used like any other Esri tool.

Chapter 6, The arcpy.mapping Module, outlines the use of the arcpy.mapping module and its role in automated map production.

Chapter 7, Advanced Analysis Topics, discusses the use of ArcPy for advanced spatial and network analysis.

Chapter 8, Introduction to ArcGIS Online, takes you through signing up for ArcGIS Online, publishing data from an MXD, and creating an Esri Developers Account.

Chapter 9, ArcPy and ArcGIS Online, looks at the use of ArcPy with ArcGIS Online and the ArcGIS REST API for programmatic access to cloud-based location data.

Chapter 10, ArcREST Python Package, explores the use of the ArcREST Python package, which allows advanced control of the ArcGIS REST API.

Chapter 11, ArcPy and ArcGIS Pro, lists the new Python 3.5 libraries and the configuration of the software used to program analysis in ArcGIS Pro.

Chapter 12, ArcGIS API for Python, dives into the use of the new ArcGIS API for Python, which allows access to ArcGIS Online data within Jupyter notebooks.

Chapter 13, Python and ArcGIS Enterprise, teaches us how to use each of these three Python modules within a professional GIS workflow.