예제 #1
0
        private void button_showOnMap_Click(object sender, EventArgs e)
        {
            if (ShowLayer != null && adjust != null)
            {
                List <AnyInfo.Geometries.Point> lonlats = new List <AnyInfo.Geometries.Point>();
                List <SolutionEstimateGroup>    group   = SolutionEstimateGroup.GetGroups(adjust.ResultSinexFile.SolutionEstimateBlock.Items);

                foreach (SolutionEstimateGroup g in group)
                {
                    lonlats.Add(new AnyInfo.Geometries.Point(g.GeoCoord, g.Items[0].SiteCode));
                }
                Layer layer = LayerFactory.CreatePointLayer(lonlats);
                ShowLayer(layer);
            }
        }
예제 #2
0
        private void button_showOnMap_Click(object sender, EventArgs e)
        {
            if (ShowLayer != null && files != null)
            {
                List <AnyInfo.Geometries.Point> lonlats = new List <AnyInfo.Geometries.Point>();
                List <SolutionEstimateGroup>    groups  = new List <SolutionEstimateGroup>();
                foreach (var item in files)
                {
                    List <SolutionEstimateGroup> group = SolutionEstimateGroup.GetGroups(item.SolutionEstimateBlock.Items);
                    foreach (SolutionEstimateGroup g in group)
                    {
                        lonlats.Add(new AnyInfo.Geometries.Point(g.GeoCoord, g.Items[0].SiteCode + "(" + item.Name + ")"));
                    }

                    groups.AddRange(group);
                }
                Layer layer = LayerFactory.CreatePointLayer(lonlats);
                ShowLayer(layer);
            }
        }
예제 #3
0
        private void button_showOnMap_Click(object sender, EventArgs e)
        {
            if (ShowLayer != null && fileA != null)
            {
                List <AnyInfo.Geometries.Point> lonlats = new List <AnyInfo.Geometries.Point>();
                List <SolutionEstimateGroup>    group   = SolutionEstimateGroup.GetGroups(fileA.SolutionEstimateBlock.Items);

                foreach (SolutionEstimateGroup g in group)
                {
                    lonlats.Add(new AnyInfo.Geometries.Point(g.GeoCoord, g.Items[0].SiteCode));
                }


                //foreach (SiteId text in fileA.SiteIdBlock.Items)
                //{
                //    lonlats.Add(new AnyInfo.Geometries.Point(text.GeoCoord, text.SiteCode));
                //}
                Layer layer = LayerFactory.CreatePointLayer(lonlats);
                ShowLayer(layer);
            }
        }