首先导入
using MapInfo.Data;
using MapInfo.Engine;
using MapInfo.Mapping;
1
private void CreateTempTable()
2
{
3
MapInfo.Mapping.Map map = Session.Current.MapFactory[0];
4
IMapLayer lyr = map.Layers["Animation"];
5
if (lyr == null)
6
{
7
TableInfoMemTable ti = new TableInfoMemTable("Animation");
8
ti.Columns.Add(ColumnFactory.CreateFeatureGeometryColumn(map.GetDisplayCoordSys()));
9
ti.Columns.Add(ColumnFactory.CreateStyleColumn());
10
Table table = MapInfo.Engine.Session.Current.Catalog.CreateTable(ti);
11
map.Layers.Insert(0, new FeatureLayer(table, "Animation", "Animation"));
12
}
13
}
![](/Images/OutliningIndicators/None.gif)
2
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
3
![](/Images/OutliningIndicators/InBlock.gif)
4
![](/Images/OutliningIndicators/InBlock.gif)
5
![](/Images/OutliningIndicators/InBlock.gif)
6
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
7
![](/Images/OutliningIndicators/InBlock.gif)
8
![](/Images/OutliningIndicators/InBlock.gif)
9
![](/Images/OutliningIndicators/InBlock.gif)
10
![](/Images/OutliningIndicators/InBlock.gif)
11
![](/Images/OutliningIndicators/InBlock.gif)
12
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
13
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)