|
请教各位仁兄,急用!急急急!!,急用!急急急!!!位仁兄!!!!
ESRI.ArcGIS.SpatialStatisticsTools.CalculateAreas( object Input_Feature_Class,object output_Feature_Cla);参数object(Input_Feature_Class , output_Feature_Clas)有问题,不知道代码怎么写,谁能帮帮我啊
关键是Input_Feature_Class , output_Feature_Clas这两个参数,具体怎么设置?
private void CalculateAreas1(IFeatureLayer layer1)
{
IFeatureClass Input_Feature_Class = layer1.FeatureClass;
Geoprocessor GP = new Geoprocessor();
GP .OverwriteOutput =true ;
ESRI.ArcGIS.SpatialStatisticsTools.CalculateAreas calculateAreas = new ESRI.ArcGIS.SpatialStatisticsTools.CalculateAreas();
calculateAreas.Input_Feature_Class = Input_Feature_Class;
//Output_Feature_Class 怎么去设置啊?
calculateAreas.Output_Feature_Class = @"D:\用户目录\我的文档\ArcGIS\Default.gdb\111111";
try
{
GP.Execute(calculateAreas, null);
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
}
|
|