Skip to main content

Decision-Making and Describing Data

  • Chapter
  • 187k Accesses

Abstract

Scripts routinely need to perform different operations based on some deciding criteria. The decision may be very simple, (‘if the field doesn’t exist, add the field’) or it may be more complex (‘if the shapefile has point geometry, compute a buffer, but if it has polygon geometry, perform an intersection’). Chapter 8 introduced ‘decision-making’ structures. These are often referred to as ‘branching’ structures, because the workflow diagram branches where the decision occurs. For example, the ‘Yellowstone Hiker’s Flowchart’ branches in three places: ‘Do I see an animal?’, ‘Is it a bear?’ and ‘Is it a killer rabbit?’. Pseudocode uses IF, THEN, ELSE IF, ELSE, and ENDIF key words to express decision-making workflows. This chapter presents the Python syntax, conditional expressions, ArcGIS tools that make selections, the arcpy Describe method, handling optional input, and creating directories.

Keywords

  • Logical Operator
  • Quotation Mark
  • Boolean Expression
  • Conditional Expression
  • Empty String

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_9
  • Chapter length: 30 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 9.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). Decision-Making and Describing Data. In: Python For ArcGIS. Springer, Cham. https://doi.org/10.1007/978-3-319-18398-5_9

Download citation