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] 下一页