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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-3-319-18398-5_9
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-18397-8
Online ISBN: 978-3-319-18398-5
eBook Packages: Earth and Environmental ScienceEarth and Environmental Science (R0)