zoukankan      html  css  js  c++  java
  • Geoprocessor 使用

    在AO中使用Geoprocessor(ESRI.ArcGIS.Geoprocessor)

    1。观察arcmap中的使用方法,明确各参数意义。

    2。arctoolbox中参数对应为features/feature layer的(即需要在下拉菜单中选择,需要首先加载到arcmap上的),首先使用MakeFeatureLayer:

    Geoprocessor gp=new Geoprocessor();
    
    MakeFeatureLayer mfl=new MakeFeatureLayer();
    mfl.in_features=@"e:\test.shp";
    mfl.out_layer="test";    //feature layer name
    
    gp.Execute(mfl,null);

    然后在调用其他gp的时候就可以直接使用此featureLayer:

    RepairGeometry rg=new RepairGeometry();
    rg.in_features="test";
    gp.Execute(rg,null);

    3.如gp执行错误时,可打印消息:

    int count=gp.MessageCount;
    for(int i=0;i<count;i++)
    {
      Console.WriteLine(gp.GetMessage(i));  
    }
  • 相关阅读:
    图像滤波
    直方图histeq
    直方图
    基于灰度变换的图像增强
    图像增强
    图像旋转和缩放
    图像点运算
    像素的连接与联通
    程序员进阶之算法练习(一)
    RxSwift 系列(二)
  • 原文地址:https://www.cnblogs.com/myparamita/p/2822731.html
Copyright © 2011-2022 走看看