Abstract
GIS data often comes in formats that can’t be imported into ArcGIS or read with arcpy cursors without modification. Automating these modifications can be a significant time saver if you have numerous files that require the same changes. The arcpy cursors discussed in Chapter 17 are specialized for reading and writing attribute tables that conform to a prescribed format, such as dBASE files, shapefiles, and GRID rasters. This chapter discusses Python file handling functions that can read and write text files, regardless of format. The chapter begins with Python file handling syntax and then uses GIS examples to demonstrate common tabular text file modifications.
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). Reading and Writing Text Files. In: Python For ArcGIS. Springer, Cham. https://doi.org/10.1007/978-3-319-18398-5_19
Download citation
DOI: https://doi.org/10.1007/978-3-319-18398-5_19
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)