Terry's blog

Focus on bigdata and cloud.

博客园 首页 新随笔 联系 订阅 管理
 1        private void addTempTableToolStripMenuItem_Click(object sender, EventArgs e)
 2        {
 3            MapInfo.Geometry.Point point = new MapInfo.Geometry.Point(map.GetDisplayCoordSys(), 100100);
 4            MapInfo.Styles.SimpleVectorPointStyle svpStyle = new MapInfo.Styles.SimpleVectorPointStyle(40, System.Drawing.Color.Red, 40);
 5            //get temp table
 6            MapInfo.Data.Table table = MapInfo.Engine.Session.Current.Catalog.GetTable("Animation");
 7            Feature ftr = new Feature(table.TableInfo.Columns);
 8
 9            ftr.Geometry = point;
10            ftr.Style = svpStyle;
11            ftr["NAME"= "test";
12            table.InsertFeature(ftr);
posted on 2007-12-24 12:42  王晓成  阅读(287)  评论(0编辑  收藏  举报