ERROR 010328: Syntax error at or near symbol,ERROR 010267: Syntax error in pa

broken_hook 2017-11-27 09:56:33
输入的文件路径还有文件名都是全英文,没有空格没有数字,还是会报这个错误:
ERROR 010328: Syntax error at or near symbol SPACE.
ERROR 010267: Syntax error in parsing grid expression.
先写上代码,代码是放在一个类里边,在主窗口用ICommand接口OnClick事件调用该类实现功能代码如下
IFeatureLayer pFeatureLayer = mapp.get_Layer(0) as IFeatureLayer;
IFeatureClass pFeatureClass = pFeatureLayer.FeatureClass;
IFeatureClassDescriptor pFCDdescriptor = new FeatureClassDescriptorClass();//描述符

pFCDdescriptor.Create(pFeatureClass, null, "Height");//输入要素数据集

IRasterRadius pRadius = new RasterRadius();//搜索半径
pRadius.SetVariable(12);//设定搜索半径为12
IInterpolationOp pInterpolationOp = new RasterInterpolationOpClass();//InterpoOP2插值接口
IRasterAnalysisEnvironment pEnv = pInterpolationOp as IRasterAnalysisEnvironment;//设置空间分析环境
pEnv.SetCellSize(esriRasterEnvSettingEnum.esriRasterEnvValue, 5000);//SetCellSize设置输出栅格数据的像元大小
IGeoDataset pInputDataset = pFCDdescriptor as IGeoDataset;//输入包含Z值的点要素集
IGeoDataset pOutputDataset = pInterpolationOp.IDW(pInputDataset,2, pRadius);
IRasterLayer pRasterLayer = new RasterLayer();
pRasterLayer.CreateFromRaster(pOutputDataset as IRaster);
mapp.AddLayer(pRasterLayer);
mapp.Refresh();


报错行在 IGeoDataset pOutputDataset = pInterpolationOp.IDW(pInputDataset,2, pRadius);其他地方都没有错
求求大神帮忙!!谢谢谢谢!!
...全文
2302 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
sinat_33493125 2018-04-23
  • 打赏
  • 举报
回复
要素图层输入的文件绝对路径

8,832

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 组件/控件开发
社区管理员
  • 组件/控件开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧