xchguo
路人甲
路人甲
  • 注册日期2007-12-01
  • 发帖数12
  • QQ
  • 铜币158枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1273回复:1

[求助]VS2010+AE10.0总提示3DAnayalst没有许可?怎么办啊!

楼主#
更多 发布于:2014-09-06 20:02
<p><font face="Verdana"> private IRaster CreateRaster(IFeatureLayer pFeatureLayer)
        {  
            </font></p>
<p><font face="Verdana">            IInterpolationOp2 pInterpolationOp = new   RasterInterpolationOpClass();
            IGeoDataset pInputDataset = (IGeoDataset)pFeatureLayer.FeatureClass;
           //设置搜索半径
            IRasterRadius pRadius = new RasterRadiusClass();
            object o1 = Type.Missing;
            pRadius.SetVariable(12, ref o1);
            //设置插值字段
            IFeatureClassDescriptor pFCDescriptor = new FeatureClassDescriptor() as IFeatureClassDescriptor;
            pFCDescriptor.Create(pFeatureLayer.FeatureClass, null, "samp");
            double dCellSize = 0.01364;//设置像元大小
            object oCell = dCellSize;
            IRasterAnalysisEnvironment pEnv = (IRasterAnalysisEnvironment)pInterpolationOp;
            pEnv.SetCellSize(esriRasterEnvSettingEnum.esriRasterEnvValue, ref oCell);
            
            IRaster pOutRaster = null;
            //插值
            object o2 = Type.Missing;
            pOutRaster = pInterpolationOp.Krige(pFCDescriptor as IGeoDataset,esriGeoAnalysisSemiVariogramEnum.esriGeoAnalysisGaussianSemiVariogram, pRadius, false , ref o2) as IRaster;
            MessageBox.Show("OK");
                      return null;
        }</font></p>
<p>运行到</p>
喜欢0 评分0
gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15947
  • QQ554730525
  • 铜币25339枚
  • 威望15364点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
1楼#
发布于:2015-04-10 21:07
授权正常的话,你需要在程序初始化的时候,检测许可文件
举报 回复(0) 喜欢(0)     评分
游客

返回顶部