protected virtual void button_showOnMap_Click(object sender, EventArgs e) { if (ShowLayer != null) { if (checkBox_clearCoords.Checked) { this.Coords.Clear(); } if (Coords.Count == 0) { foreach (var path in ParseInputPathes()) { var header = RinexObsFileReader.ReadHeader(path); this.Coords.Add(new NamedRmsXyz(System.IO.Path.GetFileName(path), new RmsedXYZ(header.ApproxXyz))); } } if (Coords == null || Coords.Count == 0) { log.Warn("输入结果为空。"); return; } int start = this.paramVectorRenderControl1.StartIndex; if (start >= Coords.Count) { log.Warn("起始历元编号过大!总结果数 " + Coords.Count + ",起始历元编号:" + start + ", 为了可显示,已经将其设为 0"); start = 0; } PostionResultLayerBuilder builder = new PostionResultLayerBuilder(Coords, start); //builder.AddPt(GnssResults[0].SiteInfo.ApproxXyz, GnssResults[0].SiteInfo.MarkerName + "ApproxPoint"); ShowLayer(builder.Build()); } }
private void button_showOnMap_Click(object sender, EventArgs e) { try { if (ShowLayer != null && _results.Count != 0) { int start = this.positonResultRenderControl11.StartIndex;; PostionResultLayerBuilder builder = new PostionResultLayerBuilder(_results, start); builder.AddPt(this.RovObsDataSource.SiteInfo.ApproxXyz, this.RovObsDataSource.SiteInfo.SiteName + "_Rov"); builder.AddPt(this.RefObsDataSource.SiteInfo.ApproxXyz, this.RefObsDataSource.SiteInfo.SiteName + "_Ref"); ShowLayer(builder.Build()); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }