我有两个思路可都没实现
1)先建表,在插入数据
如下:
Dim tableInfoNative As MapInfo.Data.TableInfoNative = New MapInfo.Data.TableInfoNative("省会x")
tableInfoNative.TablePath = "C:\\" + "省会x" + ".TAB"
tableInfoNative.Columns.Add(MapInfo.Data.ColumnFactory.CreateIntColumn("ID"))
tableInfoNative.Columns.Add(MapInfo.Data.ColumnFactory.CreateStyleColumn())
Dim coordSys As MapInfo.Geometry.CoordSys = MapControl1.Map.GetDisplayCoordSys()
tableInfoNative.Columns.Add(MapInfo.Data.ColumnFactory.CreateFeatureGeometryColumn(coordSys))
tableInfoNative.WriteTabFile() Dim table As MapInfo.Data.Table =
MapInfo.Engine.Session.Current.Catalog.CreateTable(tableInfoNative)
可是又不知怎么才能插入数据
2)我想MAPXtreme 应该有方法直接将当前地图保存为TAB格式文件可不知怎么写?
------解决方案--------------------
tableInfoNative As MapInfo.Data.TableInfoNative = New MapInfo.Data.TableInfoNative("省会x")
tableInfoNative.TablePath = "C:\\" + "省会x" + ".TAB"
tableInfoNative.Columns.Add(MapInfo.Data.ColumnFactory.CreateIntColumn("ID"))
tableInfoNative.Columns.Add(MapInfo.Data.ColumnFactory.CreateStyleColumn())
Dim coordSys As MapInfo.Geometry.CoordSys = MapControl1.Map.GetDisplayCoordSys()
tableInfoNative.Columns.Add(MapInfo.Data.ColumnFactory.CreateFeatureGeometryColumn(coordSys))
tableInfoNative.WriteTabFile() Dim table As MapInfo.Data.Table =
MapInfo.Engine.Session.Current.Catalog.CreateTable(tableInfoNative)
微信电脑客户端www.shuixiangu.com ujg
上海网站建设www.brodun.com erv
皇@冠网www.huangguanok.com hyh
砍柴网www.ikanchai.com dty
921影院www.92Lyy.com frv
励志名言www.hxsk.net xtg
穿衣打扮www.nvw8.com ybh
乐酷影院www.leku99.com itv
热血江湖一龙http://bbs.pxrxjh.com cgh
印度海娜花www.315-yinduhainahua.com lrf
天骄无双www.6mao.com/shu/tianjiaowushuang/ csf lqok