Executing geoprocessing tools


PurposeThis sample uses the Geoprocessor class in conjunction with geoprocessing tool classes to execute a series of geoprocessing tools. This sample shows how to extract features to a new feature class based on a location and an attribute query. This sample illustrates how to execute geoprocessing tools and set geoprocessing environments in a .NET application.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and 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. Open the solution file in Visual Studio.
  2. You can substitute the paths to your own data in the code, compile, and run this sample, or you can use it as a template for running other tools.

Additional information

This sample is a console application, and Microsoft Visual Studio is required to run this application.

executetool/copyfeatures.vb Source file containing code for executing geoprocessing tools.
Download the VB.NET files
executetool/copyfeatures.cs Source file containing code for executing geoprocessing tools.
Download the C# files

Download the files for all languages

See Also:

Using geoprocessing




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