Abstract
User-defined functions enable code reuse within a script; they can also be called from other scripts. To amplify code reusability, functions can be defined in a supporting script. Scripts that house sets of related function definitions and other related code are referred to as modules. This chapter focuses on defining and importing user-modules. It also discusses how to structure development code within a module. Finally, the chapter concludes with a practical example for managing GIS temporal data and time attributes.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Tateosian, L. (2015). User-Defined Modules. In: Python For ArcGIS. Springer, Cham. https://doi.org/10.1007/978-3-319-18398-5_16
Download citation
DOI: https://doi.org/10.1007/978-3-319-18398-5_16
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)