Add feature


Purpose
This sample demonstrates how to add a feature from an existing feature class to a new feature class using feature.createFeature() and feature.store(). This sample also shows how to start, end, and save an edit session using the IWorkspaceEdit class.
 
This sample uses the following information:
  • input.data.path—Location to an input dataset
  • input.data.name—Name of the input dataset

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. The feature class is updated and the results are written to the console.


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




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView