コード例 #1
0
        public override void SetCurrent(IGeoInfo info)
        {
            base.SetCurrent(info);

            _pointInfo = info.ConvertTo <PointGeoInfo>();
            InDrawingStatus(false);
        }
コード例 #2
0
ファイル: BackhaulPLCalc.cs プロジェクト: xiaoyj/Space
 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;    
 }
コード例 #3
0
ファイル: CellFilter.cs プロジェクト: xiaoyj/Space
 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;
 }
コード例 #4
0
ファイル: ucDrawEvents.cs プロジェクト: haizhizhong/ReflexMap
        public override void SetCurrent(IGeoInfo info)
        {
            base.SetCurrent(info);
            _eventInfo = info.ConvertTo <EventGeoInfo>();

            cboEvents.Properties.Items.Clear();

            InDrawingStatus(false);
        }
コード例 #5
0
ファイル: PenShape.cs プロジェクト: haizhizhong/ReflexMap
        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);
            }
        }
コード例 #6
0
ファイル: PenPoint.cs プロジェクト: haizhizhong/ReflexMap
        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);
            }
        }
コード例 #7
0
ファイル: LinkLoss.cs プロジェクト: xiaoyj/Space
 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;
 }
コード例 #8
0
ファイル: ucDrawBase.cs プロジェクト: haizhizhong/ReflexMap
        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);
            }
        }
コード例 #9
0
        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);
        }
コード例 #10
0
        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();
        }
コード例 #11
0
        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);
            }
        }
コード例 #12
0
 public abstract void Init(IGeoInfo geo, bool isCur, List <Envelope> shapeList, List <MapPoint> pointList);
コード例 #13
0
ファイル: PLCalcDataVstr.cs プロジェクト: xiaoyj/Space
 public PLCalcDataVstr(IApplicationContext appContext)
 {
     this.m_AppContext = appContext;
     this.m_IProjectManager = ServiceHelper.Lookup<IProjectManager>(appContext);
     this.m_IGeoInfo = ServiceHelper.Lookup<IGeoProvider>(appContext).GetGeoInfo;
 }
コード例 #14
0
ファイル: LteCellFilter.cs プロジェクト: xiaoyj/Space
 public LteCellFilter(IGeoInfo iGeoInfo)
 {
     this.m_GeoInfo = iGeoInfo;
 }