Skip to main content

Basic Data Types: Lists and Tuples

  • Chapter
Python For ArcGIS
  • 188k Accesses

Abstract

GIS scripting frequently involves manipulating collections of items, such as files or data records. For example, you might have multiple tabular data files with special characters in the fields preventing direct import into ArcGIS. A script to replace the characters can use lists to hold the file names and field names. Then the files and fields can be batch processed. Built-in Python data types, such as lists, are useful for solving this kind of GIS problem. This chapter presents the Python list data type, list operations and methods, the range function, mutability, and tuples. The chapter concludes with a debugging walk-through to demonstrate syntax checking and tracebacks.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 119.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

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). Basic Data Types: Lists and Tuples. In: Python For ArcGIS. Springer, Cham. https://doi.org/10.1007/978-3-319-18398-5_4

Download citation

Publish with us

Policies and ethics