Summary

In this chapter we covered the basic uses of data access module cursors. Search, update and Insert Cursors were explored and demonstrated, and a special focus was placed on the use of these cursors for extracting shape data from the shape field. Cursor parameters were also introduced, including the spatial reference parameter and the SQL expression where clause parameter. In the next chapter, we will further explore the use of cursors, especially with the use of ArcPy Geometry types.

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.