CopyFeatures geoprocessing tool
Purpose This sample demonstrates the execution of geoprocessing tools—such as MakeFeatureLayer, SelectLayerByLocation, SelectLayerByAttribute, and CopyFeatures—using the GeoProcessor class. The following workflow is implemented using the above-mentioned geoprocessing tools:
Feature layers are created (MakeFeatureLayer tool)
Features are selected using a location-based query (SelectLayerByLocation tool)
Of the features selected, only those features that meet another criteria are selected (SelectLayerByAttribute tool)
All selected features are copied to a new feature class (CopyFeatures tool)
The main purpose of this sample is to demonstrate creating geographic information system (GIS) solutions using coarse-grained geoprocessing tools.
How to use
See
How to use ArcGIS samples
for help running the sample.
Run the sample.
After sample execution is complete, examine wellsCopy.shp in the output directory. This shapefile is the output of the CopyFeatures geoprocessing tool, which copies features from the supplied layer.
Development licensing
Deployment licensing
Engine Developer Kit
Engine Runtime
ArcView