Update features using an update cursor


Purpose
This sample demonstrates how to use an update feature cursor to maximize update performance on simple datasets. In this sample, the X, Y coordinates of the geometry of point features in a shapefile are written to new fields on the shapefile.
 
While this sample works on shapefiles, it can easily be modified to work with simple geodatabase feature classes.

How to use

See How to use ArcGIS samples for help on running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Run the application. WARNING: This will modify the input shapefile.


Download the files for Java
geodatabase/UpdateFeatures.java Main class




Additional Requirements
  • Feature dataset

Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView