Пример #1
0
 public Dictionary<short, double> GetClutterPercent(GeoPolygonRegion polygonRegion, bool isSetPtDict, bool isRandomPt)
 {
     if (this.GetDemData(DemDataType.Clutter) == null)
     {
         return null;
     }
     if (this.m_IsClutterPercentRun)
     {
         this.m_IsClutterPercentRun = this.m_PolygonRegion.Equals(polygonRegion);
     }
     if (!this.m_IsClutterPercentRun)
     {
         this.GetClutterList(polygonRegion, isSetPtDict, isRandomPt);
         this.m_IsClutterPercentRun = true;
         this.GetPercent(polygonRegion);
         this.m_PolygonRegion = polygonRegion.Clone();
     }
     return new Dictionary<short, double>(this.m_ClutterIDPercentDict);
 }
Пример #2
0
 private Dictionary<short, double> CalcPolygonClutterPercent(GeoPolygonRegion polygonRegion, SimulationProgressHandle simProgressHandle, List<IGeoRasterData> rasterDataList, Dictionary<short, string> clutterIDTypeDict, GeoXYRect resPolyRegion)
 {
     if (this.m_CaculateFullMap)
     {
         this.GetAllMapClutterPercent(rasterDataList, clutterIDTypeDict);
         return new Dictionary<short, double>(this.m_AllMapClutterIDPercentDict);
     }
     if (this.m_IsClutterPercentRun)
     {
         this.m_IsClutterPercentRun = polygonRegion.Equals(this.m_PolygonRegion);
     }
     if (!this.m_IsClutterPercentRun)
     {
         this.CalcPolygonClutterPercent(polygonRegion, resPolyRegion, rasterDataList);
         this.m_IsClutterPercentRun = true;
         this.GetPercent(polygonRegion);
         this.m_PolygonRegion = polygonRegion.Clone();
     }
     this.m_SimulationProgressEvent = (SimulationProgressHandle) Delegate.Remove(this.m_SimulationProgressEvent, simProgressHandle);
     this.m_IsNeedReportProgress = false;
     return new Dictionary<short, double>(this.m_ClutterIDPercentDict);
 }