zoukankan      html  css  js  c++  java
  • MapInfo 添加临时表特征

     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);
  • 相关阅读:
    第十次Java作业
    第七周Java作业
    第十二周作业
    上机练习
    第十一周作业
    第十一周上机练习
    第十周上机练习
    第九周上机作业
    第八周作业
    第八周上机作业
  • 原文地址:https://www.cnblogs.com/abcdwxc/p/1012428.html
Copyright © 2011-2022 走看看