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

Feature sets

A feature set is a lightweight data format that contains the feature schema (such as fields, the spatial reference, and the geometry type) and the actual data itself, much like a feature class. The feature set is a format that makes it easy and efficient to interact with GIS web services published on a server, including ArcGIS Online, Portal for ArcGIS, and ArcGIS for Server. If you run a tool or geoprocessing service using a server environment, the data format used in these processes is called feature sets and record sets. For the purposes of this chapter, we will be reviewing only feature sets.

It is important to note that when loading data into a feature set from a feature class, any updates on the feature set will affect the original feature class. For example, if you write a script that includes an update cursor or field calculation on the feature set, you will...