2
避免使用.NET进行ArcObjects地理处理失败?
我们可以使用ArcToolbox中的一些不错的功能,但是由于某些原因,它无法正常工作。它甚至都没有抛出错误。 我的软件在ArcMap中运行,所以不需要再次进行AoInitialize了吗? public void Execute() { InitializeProduct(); try { Geoprocessor gp = new Geoprocessor(); gp.OverwriteOutput = true; FeatureToPoint featureToPoint = new FeatureToPoint(); string outputPathName = CurrentWorkspace.PathName + "\\teste_centroide"; featureToPoint.in_features = InputFeatureClass; featureToPoint.out_feature_class = outputPathName; featureToPoint.point_location = "INSIDE"; IGeoProcessorResult result = (IGeoProcessorResult)gp.Execute(featureToPoint, null); if (result == null) { for (int i …