关于ESRI.ArcGIS.Geoprocessor的几个疑问

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.企事业单位

     这样的字符串来解决

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

原文地址:https://www.cnblogs.com/threestone/p/1714784.html