The method of AE calling GP tool
First, we must first make clear what tools you need to call arctoolbox and what functions to implement.
Second, follow the requirements to see how the functionality is implemented in the Arctoolbox tool, and then determine the data source you want.
Third, write command or tool tools and write your own functional tools.
Finally, a simple kriging interpolation is used as an example to illustrate. (oneself once did not use the method of calling GP to realize this function wrote a very long code, but tried to call GP tool way, only a few lines of simple code on OK, or very convenient, hehe).
1 Create a project first.
2 Create a ICommand class.
3 Define the name of the tool and other information
Public Kriging ()
{
Base.m_category = "Gptools";
Base.m_caption = "Krugin interpolation";
Base.m_message = "Krugin interpolation";
Base.m_tooltip = "Krugin interpolation";
Base.m_name = "Kriging";
Try
{
String bitmapresourcename = GetType (). Name + ". bmp";
Base.m_bitmap = new Bitmap (GetType (), bitmapresourcename);