Using C # and AE to invoke GP tools

Source: Internet
Author: User

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);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.