阅读:1380回复:1
[求助]VS2010+AE10.0总提示3DAnayalst没有许可?怎么办啊!
<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> |
|
1楼#
发布于:2015-04-10 21:07
授权正常的话,你需要在程序初始化的时候,检测许可文件
|
|
|