zoukankan      html  css  js  c++  java
  • C#+AE 插值

     /// <summary>
            /// 要插值的要素类,插值的字段名,阈值,栅格大小,指数
            /// </summary>
            /// <param name="_pFeatureClass"></param>
            /// <param name="_pFieldName"></param>
            /// <param name="_pDistance"></param>
            /// <param name="_pCell"></param>
            /// <param name="_pPower"></param>
            /// <returns></returns>

           public IGeoDataset IDW(IFeatureClass _pFeatureClass, string _pFieldName, double _pDistance, double _pCell, int _pPower)
           {
               IGeoDataset Geo = _pFeatureClass as IGeoDataset;

               object pExtent = Geo.Extent;

               object o = Type.Missing;

               IFeatureClassDescriptor pFeatureClassDes = new FeatureClassDescriptorClass();

               pFeatureClassDes.Create(_pFeatureClass, null, _pFieldName);


               IInterpolationOp pInterOp = new RasterInterpolationOpClass();

               IRasterAnalysisEnvironment pRasterAEnv = pInterOp as IRasterAnalysisEnvironment;


              // pRasterAEnv.Mask = Geo;


               pRasterAEnv.SetExtent(esriRasterEnvSettingEnum.esriRasterEnvValue, ref pExtent, ref o);


               object pCellSize = _pCell;//可以根据不同的点图层进行设置


               pRasterAEnv.SetCellSize(esriRasterEnvSettingEnum.esriRasterEnvValue, ref pCellSize);


               IRasterRadius pRasterrad = new RasterRadiusClass();

               object obj = Type.Missing;

               pRasterrad.SetFixed(_pDistance, ref obj);

               object pBar = Type.Missing;

               IGeoDataset pGeoIDW = pInterOp.IDW(pFeatureClassDes as IGeoDataset, _pPower, pRasterrad, ref pBar);

               return pGeoIDW;

           }

  • 相关阅读:
    Office Live for Small Business开启您创业的大门
    把时间管理培养成习惯
    面向对象主要概念
    《程序员羊皮卷》中的职场江湖
    时间管理——如何应对外界的干扰
    时间管理——珍惜时间碎片
    对于Office Live平台的思考
    Office Live第一步搭建网络工作环境
    时间管理——专注与放下
    时间管理——寻找精力与效率的平衡点
  • 原文地址:https://www.cnblogs.com/zuiyirenjian/p/1951236.html
Copyright © 2011-2022 走看看