public override void SetCurrent(IGeoInfo info) { base.SetCurrent(info); _pointInfo = info.ConvertTo <PointGeoInfo>(); InDrawingStatus(false); }
public BackhaulPLCalc(IBaseService iBaseService) { m_IPTPLossCalcMethod = ServiceHelper.Lookup<IPTPLossCalcMethod>(iBaseService); m_IPropagModelCollection = ServiceHelper.Lookup<IPropagModelCollection>(iBaseService); m_CalcParamFactory = new CalcParamFactory(m_IPropagModelCollection as PropagationModelCollection); m_IGeoInfo = ServiceHelper.Lookup<IGeoProvider>(iBaseService).GetGeoInfo; m_IBaseService = iBaseService; }
public CellFilter(IGeoInfo iGeoInfo) { this.m_polygonLeftTop = new GeoXYPoint(); this.m_polygonRightBottom = new GeoXYPoint(); this.m_cellLeftTop = new GeoXYPoint(); this.m_cellRightBottom = new GeoXYPoint(); this.m_cellPoint = new GeoXYPoint(); this.m_GeoInfo = iGeoInfo; }
public override void SetCurrent(IGeoInfo info) { base.SetCurrent(info); _eventInfo = info.ConvertTo <EventGeoInfo>(); cboEvents.Properties.Items.Clear(); InDrawingStatus(false); }
public override void Init(IGeoInfo geo, bool isCur, List <Envelope> shapeList, List <MapPoint> pointList) { GraphicsLayer.Graphics.Clear(); _polyList = geo.ConvertTo <ShapeGeoInfo>().Polygons ?? new Dictionary <int, Polygon>(); foreach (var poly in _polyList) { AddGraphic(poly.Value, CURR_GEO, $"{poly.Key}", MapShapeLayer.GetSymbol(GeoMarkerType.Fill, isCur ? GeoStatus.Normal : GeoStatus.Reference)); shapeList.Add(poly.Value.Extent); } }
public override void Init(IGeoInfo geo, bool isCur, List <Envelope> shapeList, List <MapPoint> pointList) { GraphicsLayer.Graphics.Clear(); MapPoint point = geo.ConvertTo <PointGeoInfo>()?.Point; if (point != null) { AddGraphic(point, CURR_GEO, MapPointLayer.GetSymbol(isCur ? GeoStatus.Hilight : GeoStatus.Reference)); pointList.Add(point); } }
public LinkLoss(CalLinkLossParam calParam, IApplicationContext appContex) { this.m_clutterParams = calParam.clutterParams; this.m_GeoInfo = calParam.geoInfo; this.m_antGainCal = calParam.antGainCal; this.m_iplCalDataVstr = calParam.iplCalDataVstr; this.m_IsBuildingLoaded = calParam.IsBuildingLoaded; this.m_StructAntennaParam = new StructAntennaParam(); this.m_DicOfParamsFromGIS = new Dictionary<short, ParamsFromGIS>(); this.AddDictionary(calParam.CellEdgeCoverageProbability); LinkLossConfiguration configuration = new LinkLossConfiguration(appContex); this.m_Layers = configuration.ReaderLayers(); this.m_MCL = configuration.GetMCL(); //add by xujuan m_iGetRelayUEPathLoss = calParam.iGetRelayUEPathLoss; }
public virtual void SetCurrent(IGeoInfo geoInfo) { _attrTable.Clear(); var row = _attrTable.NewRow(); row["Attribute"] = "#"; row["Value"] = geoInfo.KeyCode; _attrTable.Rows.Add(row); foreach (var attr in geoInfo.AttrList) { row = _attrTable.NewRow(); row["Attribute"] = attr.Key; row["Value"] = attr.Value; _attrTable.Rows.Add(row); } }
public override void SetCurrent(IGeoInfo info) { base.SetCurrent(info); _lineInfo = info.ConvertTo <LineGeoInfo>(); cboPolyline.Properties.Items.Clear(); cboPolyline.Properties.Items.AddRange(_lineInfo.Polylines.Keys.ToArray()); if (cboPolyline.Properties.Items.Count > 0) { cboPolyline.SelectedIndex = 0; _map.Select($"{cboPolyline.SelectedItem}"); } InDrawingStatus(false); }
public MainPage() { int counter = 0; InitializeComponent(); // !!! Interface Init geoInfo = DependencyService.Get <IGeoInfo>(); // Try to start geolocation tracking... geoInfo.StartTracking(); int status = geoInfo.GetStatus(); while ((status != 2) && (status != 5)) { status = geoInfo.GetStatus(); // wait gps's init //Debug.WriteLine("Wait gps's init... geoInfo.GetStatus=" + status); counter++; if (counter == 3000) { //await DisplayAlert("Alert", "GPS's init failed", "OK"); GetCoordinates(); return; } } // Stop geolocation tracking geoInfo.StopTracking(); //GetWeatherInfo(); GetCoordinates(); }
public override void Init(IGeoInfo geo, bool isCur, List <Envelope> shapeList, List <MapPoint> pointList) { GraphicsLayer.Graphics.Clear(); _eventList = new Dictionary <MapPoint, List <EventDetails> >(); foreach (var e in (geo.ConvertTo <EventGeoInfo>()).EventList) { var key = _eventList.Keys.SingleOrDefault(p => p.X == e.Point.X && p.Y == e.Point.Y); if (key == null) { key = e.Point; _eventList.Add(key, new List <EventDetails>()); } _eventList[key].Add(e); } foreach (var e in _eventList) { AddGraphic(e.Key, CURR_GEO, e.Value.Count, isCur ? GeoStatus.Normal : GeoStatus.Reference); pointList.Add(e.Key); } }
public abstract void Init(IGeoInfo geo, bool isCur, List <Envelope> shapeList, List <MapPoint> pointList);
public PLCalcDataVstr(IApplicationContext appContext) { this.m_AppContext = appContext; this.m_IProjectManager = ServiceHelper.Lookup<IProjectManager>(appContext); this.m_IGeoInfo = ServiceHelper.Lookup<IGeoProvider>(appContext).GetGeoInfo; }
public LteCellFilter(IGeoInfo iGeoInfo) { this.m_GeoInfo = iGeoInfo; }