Skip to main content

Additional Looping Functions

  • Chapter
  • 187k Accesses

Abstract

Most GIS scripting projects are motivated by the desire to automate repetitive tasks. The Python programming language has a number of special functions and structures designed to facilitate various common demands in repetitive workflows. In this chapter, we’ll highlight some additional useful techniques for GIS scripting, related to Python FOR-loops, including list comprehension, the built-in enumerate and zip functions, and the os.walk function.

Keywords

  • Input File
  • List Comprehension
  • Input Directory
  • Iterate Variable
  • Full Path

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_12
  • Chapter length: 13 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 12.1

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). Additional Looping Functions. In: Python For ArcGIS. Springer, Cham. https://doi.org/10.1007/978-3-319-18398-5_12

Download citation