SharpMap + ZedGraph 饼图实例,可生成各种统计图

上传者: Ka_0O | 上传时间: 2022-06-17 14:52:36 | 文件大小: 549KB | 文件类型: ZIP
//Set visible map extents map.Center = new SharpMap.Geometries.Point(centerX, centerY); map.Zoom = Zoom; //Generate map System.Drawing.Bitmap img = (System.Drawing.Bitmap)map.GetMap(); //Stream the image to the client context.Response.ContentType = "image/png"; System.IO.MemoryStream MS = new System.IO.MemoryStream(); img.Save(MS, System.Drawing.Imaging.ImageFormat.Png); // tidy up img.Dispose(); byte[] buffer = MS.ToArray(); context.Response.OutputStream.Write(buffer, 0, buffer.Length); public SharpMap.Styles.VectorStyle GetChartingStyle(SharpMap.Data.FeatureDataRow row) { SharpMap.Styles.VectorStyle style = new SharpMap.Styles.VectorStyle(); int numMale = int.Parse(row["male"].ToString()); int numFemale = int.Parse(row["female"].ToString()); style.Symbol = this.GetChart(numMale, numFemale); return style; }

文件下载

资源详情

[{"title":"( 25 个子文件 549KB ) SharpMap + ZedGraph 饼图实例,可生成各种统计图","children":[{"title":"SimpleChart","children":[{"title":"App_Code","children":[{"title":"MapHelper.cs <span style='color:#111;'> 14.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"SimpleChart.aspx.cs <span style='color:#111;'> 4.06KB </span>","children":null,"spread":false},{"title":"Web.Config <span style='color:#111;'> 6.94KB </span>","children":null,"spread":false},{"title":"App_Data","children":[{"title":"cities.SHX <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"rivers.shx <span style='color:#111;'> 884B </span>","children":null,"spread":false},{"title":"countries.shp <span style='color:#111;'> 448.57KB </span>","children":null,"spread":false},{"title":"rivers.dbf <span style='color:#111;'> 7.85KB </span>","children":null,"spread":false},{"title":"cities.dbf <span style='color:#111;'> 46.87KB </span>","children":null,"spread":false},{"title":"countries.shp.sidx <span style='color:#111;'> 11.36KB </span>","children":null,"spread":false},{"title":"countries.shx <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"rivers.shp.sidx <span style='color:#111;'> 7.52KB </span>","children":null,"spread":false},{"title":"rivers.shp <span style='color:#111;'> 67.72KB </span>","children":null,"spread":false},{"title":"cities.shp.sidx <span style='color:#111;'> 33.80KB </span>","children":null,"spread":false},{"title":"countries.dbf <span style='color:#111;'> 7.13KB </span>","children":null,"spread":false},{"title":"cities.SHP <span style='color:#111;'> 13.17KB </span>","children":null,"spread":false},{"title":"icon.png <span style='color:#111;'> 487B </span>","children":null,"spread":false}],"spread":false},{"title":"SimpleChart.aspx <span style='color:#111;'> 897B </span>","children":null,"spread":false},{"title":"Default.aspx <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"Default.aspx.cs <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"MapHandler.ashx <span style='color:#111;'> 3.02KB </span>","children":null,"spread":false},{"title":"Bin","children":[{"title":"SharpMap.UI.dll <span style='color:#111;'> 44.00KB </span>","children":null,"spread":false},{"title":"SharpMap.dll <span style='color:#111;'> 264.00KB </span>","children":null,"spread":false},{"title":"ZedGraph.dll <span style='color:#111;'> 264.00KB </span>","children":null,"spread":false},{"title":"SharpMap.xml <span style='color:#111;'> 539.26KB </span>","children":null,"spread":false},{"title":"SharpMap.UI.XML <span style='color:#111;'> 14.17KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明