Azure Lei Zhang的博客

weibo: LeiZhang的微博/QQ: 185165016/QQ群:319036205/邮箱:leizhang1984@outlook.com/TeL:139-161-22926

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

1.   在AE9.2+Sp6补丁编译的程序
     AverageNearestNeighbor avgNearNeighbour = new AverageNearestNeighbor();

     avgNearNeighbour.Input_Feature_Class = inputString;
     Input_Feature_Class传入IFeatureLayer,不管是本地shape file还是sde feature layer均可以

2.   在AE 9.3.1下  传入的shape file可以正常运行,但是传入sde feature layer

     IGeoProcessorResult result = (IGeoProcessorResult)gp.Execute(avgNearNeighbour, null);

     result永远为null,不知道为什么,只好用

     Database Connections\10.1.161.84-cdc.sde\CDC.公共卫生\CDC.企事业单位

     这样的字符串来解决

有谁知道的话 麻烦和我说声 谢谢!

posted on 2010-04-18 16:34  Lei Zhang的博客  阅读(1441)  评论(0编辑  收藏  举报