Update features using an update cursor

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.

  1. Start Visual Studio.
  2. Run the application. Warning, this will modify the input shapefile.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

geodatabase/UpdateFeatures.java Main class.

Additional Requirements
  • Feature dataset

Development licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS for Desktop Basic