Terry's blog

Focus on bigdata and cloud.

博客园 首页 新随笔 联系 订阅 管理

2007年12月24日 #

摘要: 1 //连接Oracle数据库 2 MIConnection Connection = new MIConnection(); 3 try 4 { 5 Connection.Open(); 6 TableInfoServer ti = new TableI... 阅读全文
posted @ 2007-12-24 17:33 王晓成 阅读(588) 评论(0) 推荐(0) 编辑

摘要: 1 private void ConnSqlServer() 2 { 3 //连接数据库 4 MIConnection conn = new MIConnection(); 5 try 6 { 7 conn.Open(); 8 ... 阅读全文
posted @ 2007-12-24 14:51 王晓成 阅读(929) 评论(0) 推荐(0) 编辑

摘要: 1 2 private void createTableToolStripMenuItem_Click(object sender, EventArgs e) 3 { 4 TableInfoNative tiReader = new TableInfoNative("abc"); 5 tiReader.TablePa... 阅读全文
posted @ 2007-12-24 14:49 王晓成 阅读(335) 评论(0) 推荐(0) 编辑

摘要: 1 private void addTempTableToolStripMenuItem_Click(object sender, EventArgs e) 2 { 3 MapInfo.Geometry.Point point = new MapInfo.Geometry.Point(map.GetDisplayCoordSys(), 100... 阅读全文
posted @ 2007-12-24 12:42 王晓成 阅读(287) 评论(0) 推荐(0) 编辑

摘要: 程序如下: 1 private void updateFeatureToolStripMenuItem_Click(object sender, EventArgs e) 2 { 3 try 4 { 5 MapInfo.Data.Table CNTable = MapInfo.Engine.Se... 阅读全文
posted @ 2007-12-24 12:38 王晓成 阅读(423) 评论(0) 推荐(0) 编辑

摘要: 首先导入 using MapInfo.Data; using MapInfo.Engine; using MapInfo.Mapping; 1 private void CreateTempTable() 2 { 3 MapInfo.Mapping.Map map = Session.Current.MapFactory[0]; 4 ... 阅读全文
posted @ 2007-12-24 09:30 王晓成 阅读(354) 评论(0) 推荐(0) 编辑

摘要: 首先导入Using MapInfo.Mapping这个命名空间。 1 //导入TAB文件方法 2 MapTableLoader ml = new MapTableLoader(@"E:\mapxtreme\Samples\Data\World.TAB"); 3 mapControl1.Map.Load(ml... 阅读全文
posted @ 2007-12-24 09:16 王晓成 阅读(680) 评论(0) 推荐(0) 编辑