惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
L
LangChain Blog
云风的 BLOG
云风的 BLOG
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
I
InfoQ
大猫的无限游戏
大猫的无限游戏
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
小众软件
小众软件
量子位
The GitHub Blog
The GitHub Blog
博客园 - 【当耐特】

博客园 - fatrick

媒体网关在OCS系统架构中的作用 图文详解配置ocs边缘服务器 实战部署UC平台(OCS VOIP GW and Exchange 2007) OCS服务器Ports and Protocols OCS发待办事宜 ActiveDirectory获取用户 增强SEO的div+css命名规则 WEB网站大数据量的性能解决方案 mapxtreme2005 改变选中的图元样式 Mapxtreme2005 两点之间画直线 mapxtreme2005 创建各种样式 MapxTreme2005 画扇区 MapXtreme 2005 基础代码 如何在DataGrid里面产生滚动条 [转载]关于项目管理的一点体会 [IE&FireFox兼容]JS对select操作 个人网站建设八部曲 帮助解决网页和JS文件中的中文编码问题的小工具 FLV Player下载
MapXtreme创建本地TAB文件 - fatrick - 博客园
fatrick · 2008-06-18 · via 博客园 - fatrick

MapInfo.Data.TableInfo ti = MapInfo.Data.TableInfoFactory.CreateTemp("MyPointTable");
ti.Columns.Add(MapInfo.Data.ColumnFactory.CreateIntColumn("Index"));
MapInfo.Data.Table table = MapInfo.Engine.Session.Current.Catalog.CreateTable(ti);
table.close();
创建本地TAB文件
 try
            {
                MapInfo.Data.TableInfoNative tf = new TableInfoNative(TableAlias);
                tf.Temporary = false;
                tf.TablePath = path;
                tf.Columns.Add(MapInfo.Data.ColumnFactory.CreateIntColumn("NE_ID"));
                tf.Columns.Add(MapInfo.Data.ColumnFactory.CreateIntColumn("BSIC"));
                tf.Columns.Add(MapInfo.Data.ColumnFactory.CreateStyleColumn());
                tf.Columns.Add(MapInfo.Data.ColumnFactory.CreateFeatureGeometryColumn(map.GetDisplayCoordSys()));
                tf.WriteTabFile();
                MapInfo.Data.Table t = MapInfo.Engine.Session.Current.Catalog.CreateTable(tf);
                MapInfo.Engine.Session.Current.Catalog.CloseTable(TableAlias);
                return true;
            }
            catch { return false; } 

发表于 2008-06-18 11:21  fatrick  阅读(1035)  评论()    收藏  举报

Powered By 博客园