Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By : Eric Pimpler
Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By: Eric Pimpler

Overview of this book

The book kicks off with the fundamentals of starting to use Python with ArcGIS, followed by recipes on managing map documents and layers, including how to find and fix broken data links in these files. In the second part of the book, you will learn to create custom geoprocessing tools and how to use the Attribute and Location tools to select specific features. The third part of the book covers topics for advanced users including the REST API, and also teaches you how to use Python with ArcGIS Pro. The book finishes with appendices covering how to automate Python scripts, and the five things that should be at the back of every GIS programmer's mind.
Table of Contents (17 chapters)
16
Index

Finding geoprocessing tools

Before using a tool in your geoprocessing script, you will need to make sure that you have access to this tool, based on the current license level of ArcGIS for Desktop that you are running or that your end users will run. In addition to this, any extensions you have licensed and enabled must be taken into consideration as well. This information is contained within the ArcGIS for Desktop help system.

Getting ready

The availability of geoprocessing tools for your script is dependent on the level of the ArcGIS license you are using. In version 10.3 of ArcGIS for Desktop, there are three license levels, namely basic, standard, and advanced. These were formerly known as ArcView, ArcEditor, and ArcInfo, respectively. It is important for you to understand the license level required for the tool that you want to use in your script. In addition to this, the use of extensions in ArcGIS for Desktop can result in the availability of additional tools for your script. There...