毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 计算机安全 >> 正文

台风路径的绘制以及会商PPT的智能制作 第12页

更新时间:2014-6-29:  来源:毕业论文

台风路径的绘制以及会商PPT的智能制作 第12页

                Chain ybChain = new Chain();
                TFPolyline ybLine = new TFPolyline(ybChain);
                Color ybColor = Color.Black;

                if (dr["YBTCOLOR"].ToString() != "")
                {
                    ybColor = (Color)cc.ConvertFromString("#" + dr["YBTCOLOR"].ToString());
                }

                #region 设置预报线样式

                Pen ybPen = new Pen(Setting.YBXLColor, Setting.YBLineWidth);
                ybPen.DashStyle = DashStyle.Custom;
                ybPen.DashPattern = new float[] { Setting.YBXLineLength, Setting.YBXLBlankLength };
                ybLine.Legend = new PolylineLegend(ybPen);
                ybLine.Name = ybData.Rows[i]["hourFlag"].ToString();

                ybChain.Add(new StructPoint(firstJD, firstWD));
                ybChain.Add(new StructPoint(jd, wd));

                ybLine.Tag = preHourFlag + "," + hourFlag;

                tflineList.Add(ybLine);              

                #endregion

                #region 设置预报点样式

                TFPoint pt = new TFPoint(jd, wd);
                pt.Legend = new PointLegend(Color.Red, Color.White, new Size(Setting.YBPSize, Setting.YBPSize), MarkStyle.Ellipse);  
                pt.Name = ybData.Rows[i]["hourFlag"].ToString();

                string stationName = dr["TM"].ToString();
                string time = DateTime.Parse(dr["RQSJ"].ToString()).ToString("yy年MM月dd日HH时");
                string lon = jd.ToString("F1");
                string lat = wd.ToString("F1");
                string windPower = dr["GRADE"].ToString();
                string maxWindSpeed = dr["ZXFS"].ToString();
                string airPress = dr["ZXQY"].ToString();
                string moveSpeed = dr["YDSD"].ToString();
                string moveDirect = dr["YDFX"].ToString()
                windPower = windPower.Length > 0 ? windPower + "(级)" : windPower;
                maxWindSpeed = maxWindSpeed.Length > 0 ? maxWindSpeed + "(米/秒)" : maxWindSpeed;
                airPress = airPress.Length > 0 ? airPress + "(百帕)" : airPress;
                moveSpeed = moveSpeed.Length > 0 ? moveSpeed + "(公里/时)" : moveSpeed;
                string sRadius7 = radius7 > 0 ? radius7.ToString() + "(公里)" : string.Empty;
                string sRadius10 = radius10 > 0 ? radius10.ToString() + "(公里)" : string.Empty;

                pt.Infomation = string.Format(" 台  名:{0}\r\n 时  间:{1}\r\n 经  度:{2}(度)\r\n 纬  度:{3}(度)\r\n 风  力:{4}\r\n 最大风速:{5}\r\n 中心气压:{6}\r\n 移动速度:{7}\r\n 移动风向:{8}\r\n 七级风圈半径:{9}\r\n 十级风圈半径:{10}", stationName, time, lon, lat, windPower, maxWindSpeed, airPress, moveSpeed, moveDirect, sRadius7, sRadius10); 

                tfPointList.Add(pt);

                #endregion

                #region 绘制箭头               

                TFPoint pt1 = new TFPoint(firstJD, firstWD);
                pt1.Tag = preHourFlag;
                TFPoint pt2 = new TFPoint(jd, wd);
                pt2.Tag = hourFlag;               
                ArrowGeometry ag = new ArrowGeometry(pt1, pt2, true);
                ag.Name = ybData.Rows[i]["hourFlag"].ToString();              

                arrowList.Add(ag);

                #endregion

                #region 绘制台风风圈

                StructPoint center = new StructPoint(jd, wd);
                Circle circle_7 = new Circle(center, radius7);
                CircleLegend circleLegend7 = new CircleLegend(false, true);
                Pen pen = new Pen(Color.Green, 2.0f);
                pen.DashStyle = DashStyle.Custom;
                pen.DashPattern = new float[] { 3, 3 };
                circleLegend7.LinePen = pen;
                circle_7.Legend = circleLegend7;
                circle_7.Name = string.Format("{0},{1}", hourFlag, 7);
                fqLayer.AddGeometry(circle_7);

                center = new StructPoint(jd, wd);
                Circle circle_10 = new Circle(center, radius10);
                CircleLegend circleLegend10 = new CircleLegend(false, true);
                pen = new Pen(Color.Red, 2.0f);
                pen.DashStyle = DashStyle.Custom;
                pen.DashPattern = new float[] { 3, 3 };
                circleLegend10.LinePen = pen;
                circle_10.Legend = circleLegend10;
                circle_10.Name = string.Format("{0},{1}", hourFlag, 10);
                fqLayer.AddGeometry(circle_10);

                if (radius7 != 0)

 << 上一页  [11] [12] [13] [14] [15] 下一页

台风路径的绘制以及会商PPT的智能制作 第12页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。