diff --git a/FrmAccessoriesgather.cs b/FrmAccessoriesgather.cs index 355c94d..cadbe31 100644 --- a/FrmAccessoriesgather.cs +++ b/FrmAccessoriesgather.cs @@ -70,7 +70,8 @@ if (clbPipeLine2.Text!="") { globeControl1.Globe.Action = EnumAction3D.ActionNull; - pipeDiameterStatisNew(null, clbPipeLine2.Text); //pipeDiameterStatis(null); + //pipeDiameterStatisNew(null, clbPipeLine2.Text); //pipeDiameterStatis(null); + pipeDiameterStatisNew(polygon, clbPipeLine2.Text); //pipeDiameterStatis(null); } else { @@ -122,12 +123,14 @@ { FeatureStatisticsService featureService = new FeatureStatisticsService(); GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(layertype); + // 计算 List accessoriesResult = featureService.GroupAccessories(polygon, layer); if (accessoriesResult == null || accessoriesResult.Count == 0) { MessageBox.Show("该图层没有附属物"); } + // 显示 dataGridViewX1.Rows.Clear(); dic.Clear(); foreach (FeaturesClassfyResult accessoryResult in accessoriesResult)