91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

基于sharpmap的GIS技術的form程序,雖然已經沒有多少人用from了! 以全國省級和河流3級為GIS底圖,SHP格式 以三角網實現等值線的跟蹤顯示 功能:分層顯示,自由縮放,鼠標推動移動,A3、A4打印輸出 適合于水文氣象雨量水情的顯示和打印。 本例數據讀《實時雨水情數據庫表結構與標識符標準》2005版數據庫

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Drawing.Printing;
using?System.Drawing.Drawing2D;
using?System.Drawing.Text;
using?System.Text;
using?System.Windows.Forms;

using?SharpMap;
using?SharpMap.Forms;
using?SharpMap.Data.Providers;
using?SharpMap.layers;
using?SharpMap.Rendering;
using?SharpMap.Rendering.Symbolizer;
using?SharpMap.styles;
using?SharpMap.Geometries;
using?Point?=?SharpMap.Geometries.Point;

using?contour;
using?DataAccess;

namespace?WindowsFormsApplication3
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????????mapBox1.ActiveTool?=?MapBox.Tools.Pan;
????????????mapBox1.Map?=?InitializeMapOrig(0);
????????????checkedListBox1.SetItemChecked(0?true);??//true改為false為沒有選中
????????????//this.button1_Click(this.button1?null);
????????}

????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????Cursor?mic?=?mapBox1.Cursor;
????????????mapBox1.Cursor?=?Cursors.WaitCursor;
????????????Cursor?=?Cursors.WaitCursor;
????????????Contour?mContour?=?new?Contour();//實例等值線
????????????mContour.FreeData();//初始化
????????????List?mylsum?=?new?List();//建立?站號、站名、經、緯、時段值(高程)結構的數組。
????????????MSSQLConnection?mysql?=?new?MSSQLConnection();//建立水情數據庫實例連接
????????????string?mysqlstr?=?“Data?Source?=?“?+?textBox1.Text.Trim().ToString()?+?“;Initial?Catalog?=?“?+?textBox2.Text.Trim().ToString()?+?“;User?ID?=?“?+?textBox3.Text.Trim().ToString()?+?“;Password?=?“?+?textBox4.Text.Trim().ToString();
????????????mysql.SetCurSQLconn(mysqlstr);//修改數據庫連接參數
????????????//mylsum?=?mysql.Get_2005_Data(System.IO.Directory.GetCurrentDirectory().ToString()?+?“\\st_stbprp_b.txt“?DateTime.Parse(“2011-08-1?08:00:00“)?DateTime.Parse(“2011-09-01?08:00:00“));//2005版實時雨水情數據庫表結構與標識符標準,也為標準版

????????????mylsum?=?mysql.Get_2005_Data(System.IO.Directory.GetCurrentDirectory().ToString()?+?“\\st_stbprp_b.txt“?dateTimePicker1.Value?dateTimePicker2.Value);//2005版實時雨水情數據庫表結構與標識符標準,也為標準版
????????????if?(mylsum?!=?null)
????????????{
????????????????if?(mylsum.Count?==?0)
????????????????{
????????????????????MessageBox.Show(“本次沒有雨量,如果是新版數據庫,請使用Get_2012_Data“);
????????????????????Cursor?=?Cursors.Default;
????????????????????mapBox1.Cursor?=?mic;
????????????????????return;

????????????????}
????????????????for?(int?i?=?0;?i?????????????????{
????????????????????if?(mylsum[i].YL?>?0)
????????????????????{
????????????????????????mContour.AddPointRandom(mylsum[i].STCD?mylsum[i].STNM?mylsum[i].LGTD?mylsum[i].LTTD?mylsum[i].YL);//逐個點增加數據
????????????????????}
????????????????}
????????????}
????????????else
????????????{
????????????????MessageBox.Show(“本次沒有雨量,如果是新版數據庫,請使用Get_2012_Data“);
????????????????Cursor?=?Cursors.Default;
????????????????mapBox1.Cursor?=?mic;
?????????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????144??2012-01-02?11:05??WindowsFormsApplication3\WindowsFormsApplication3\app.config

?????文件??????56832??2012-01-04?16:09??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\contour.dll

?????文件??????77312??2012-01-04?16:24??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\DataAccess.dll

?????文件?????182392??2012-01-02?13:41??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\china2.dbf

?????文件????????157??2012-01-02?13:41??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\china2.prj

?????文件????1395500??2012-01-02?13:41??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\china2.shp

?????文件?????102525??2012-01-02?13:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\china2.shp.sidx

?????文件??????14380??2012-01-02?13:41??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\china2.shx

?????文件??????25464??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\cities.DBF

?????文件????????142??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\cities.prj

?????文件??????13484??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\cities.SHP

?????文件??????34613??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\cities.shp.sidx

?????文件???????3924??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\cities.SHX

?????文件???????7301??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\countries.dbf

?????文件????????142??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\countries.prj

?????文件?????459332??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\countries.shp

?????文件??????11637??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\countries.shp.sidx

?????文件???????1276??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\countries.shx

?????文件???????8036??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers.dbf

?????文件????????142??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers.prj

?????文件??????69344??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers.shp

?????文件???????7703??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers.shp.sidx

?????文件????????884??2011-12-22?05:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers.shx

?????文件?????555320??2012-01-02?13:42??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers1.dbf

?????文件????????157??2012-01-02?13:42??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers1.prj

?????文件????3470812??2012-01-02?13:42??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers1.shp

?????文件?????167423??2012-01-02?13:43??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers1.shp.sidx

?????文件??????23964??2012-01-02?13:42??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers1.shx

?????文件?????351870??2012-01-02?13:36??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers2.dbf

?????文件????????157??2012-01-02?13:36??WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\GeoData\World\rivers2.prj

............此處省略49個文件信息

評論

共有 條評論