Summary

In this chapter, we discussed how to take autogenerated code and make it generalized, while adding functions that can be reused in other scripts and will make the generation of the necessary code components, such as SQL statements, much easier. We also addressed when it is best not to go too far with the creation of functions to avoid making them too specific.

In the next chapter, we will investigate the powerful Data Access module and its Search Cursors, Update Cursors, and Insert Cursors.

Get ArcPy and ArcGIS – Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.