Summary

In this chapter, we have explored how to create modules and reusable functions that will save scripting time in the future by allowing us to avoid rewriting these useful functions. We further explored the methods available through ArcPy Geometry objects, including the Intersect, Overlaps, and Union methods. We created a spatial analysis that writes no feature classes to disk, making it so that the analysis time is reduced and unnecessary files are avoided. Finally, we explored how to generate Excel spreadsheets using the XLWT module so that analysis results can be shared in industry standard formats.

In the next chapter, we will explore how to use ArcPy to interact with the ArcGIS for desktop extensions such as Network Analyst and Spatial ...

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.