为了降低开发难度和提高开发效率,ArcGIS Engine 9.2中添加了GeoProcessor类,该类的作用ESRI的帮助文档中的说明为:A geoprocessing tool is executed by a geoprocessor. The geoprocessor is a helper object that simplifies the task of executing tools. Toolboxes define the set of tools available for the geoprocessor. Toolboxes can be added and removed from the geoprocessor.其意思大概就在是用GeoProcessor能帮助用户直接实现一些简单的工具性的功能,所有在ArcToolBox中的功能,基本都可以用GeoProcessor编程实现。
GeoProcessor在编程中用起来,有时候有些麻烦,因为其参数都是这通过
SetEnvironmentValue (stringenvironmentName, object Value )函数来实现的,而environmentName是字符型,因此具体需要设置什么变量,以及变量的值该怎么给,很多时候需要经验以及对ArcToolBox的熟悉程度来决定了。