Skip to main content

Calling Tools with Arcpy

  • Chapter
  • 187k Accesses

Abstract

ArcGIS offers a large array of sophisticated geoprocessing tools which can be accessed from Python using the arcpy package. Chapter 5 introduced the arcpy package and used it to set environment variables. This chapter focuses on how to call ArcGIS geoprocessing tools with arcpy and how to use the tool help documentation and get sample code. We explain the general format for calling tools and how to handle linear unit parameters, multi-value parameters, optional parameters, and return values. We also discuss tools which require specialized approaches, including Calculate Field, Raster Calculator, Make XY Event Layer tools, and tools in the Spatial Analyst toolbox. Then we show how to call tools in a sequential workflow and how to call custom tools.

Keywords

  • Optional Parameter
  • Python Script
  • Spatial Analyst
  • Code Signature
  • Linear Unit

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

This is a preview of subscription content, access via your institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-3-319-18398-5_6
  • Chapter length: 23 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
eBook
USD   79.99
Price excludes VAT (USA)
  • ISBN: 978-3-319-18398-5
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   99.99
Price excludes VAT (USA)
Hardcover Book
USD   139.99
Price excludes VAT (USA)
Figure 6.1
Figure 6.2
Figure 6.3
Figure 6.4
Figure 6.5

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and Permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Tateosian, L. (2015). Calling Tools with Arcpy. In: Python For ArcGIS. Springer, Cham. https://doi.org/10.1007/978-3-319-18398-5_6

Download citation