O'Reilly logo

Programming ArcGIS 10.1 with Python Cookbook by Eric Pimpler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Using the ArcPy Data Access Module to Select, Insert, and Update Geographic Data and Tables

In this chapter, we will cover the following recipes:

  • Overview of cursor objects
  • Retrieving features from a feature class with SearchCursor
  • Filtering records with a where clause
  • Improving cursor performance with Geometry tokens
  • Inserting rows with InsertCursor
  • Updating rows with UpdateCursor
  • Deleting rows with UpdateCursor
  • Inserting and updating rows inside an edit session
  • Reading geometry from a feature class

Introduction

We'll start this chapter with a basic question. What are cursors? Cursors are in-memory objects containing one or more rows of data from a table or feature class. Each row contains the attributes from each field in the data source, along ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required