2009年4月23日
摘要: 创建一个SDE连接,并返回其路径;得到的路径可用于geoprocessing充当SDE connection path.Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Private Function fnCreateWS()Function fnCr... 阅读全文
posted @ 2009-04-23 18:24 炜升 阅读(288) 评论(0) 推荐(0) 编辑
摘要: The IDatasetContainer interface lets you move datasets between feature datasets and workspaces—both objects implement the interface. Note that when moving feature classes into a feature dataset, the s... 阅读全文
posted @ 2009-04-23 15:58 炜升 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 利用workspace打开某个featureclass时,openFeatueclass方法有时会引发的错误。 这是因为找不到对应名字的featureclass, 而OpenFeatureClass方法自身又没有error handle. 一般情况下,我们可以在openfeatureclass前加上一句on error resume next以防止错误。 下面是一个利用On Error Res... 阅读全文
posted @ 2009-04-23 15:34 炜升 阅读(452) 评论(0) 推荐(0) 编辑
摘要: IQueryDef sets the parameters needed to create an attribute query. The name of the table and a string defining the where clause are required. An optional list of columns may be included to specify th... 阅读全文
posted @ 2009-04-23 14:45 炜升 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 首先是添加ORACLE和SQL Server的引用(reference),ORACLE用的是它自带的类库Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Imports System.Data.SqlClientImports Oracle.DataA... 阅读全文
posted @ 2009-04-23 12:19 炜升 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 下面为一读取DBF文件的实例Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Public Function getOwner()Function getOwner(Allslope As File, SlopeNo As String) As Stri... 阅读全文
posted @ 2009-04-23 09:58 炜升 阅读(394) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Public Function getCoverageFC()Function getCoverageFC(pFilePath As String, pFeatureClassType As Intege... 阅读全文
posted @ 2009-04-23 09:44 炜升 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 下面是读取XML文件的一个实例,pFCDirectory为full path的xml文件.Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Private Function RetrieveFeactureClassName()Function Retr... 阅读全文
posted @ 2009-04-23 09:35 炜升 阅读(236) 评论(0) 推荐(0) 编辑
摘要: ●先來談談FreeFile,當我們開啟一個檔案時,程式必需要將開啟的檔案資訊放入檔案緩衝記憶體裡,這個緩衝記憶體我們以編號來表示。●於VB裡,我們要開啟一個檔案時,可以任意指定一個編號的檔案緩衝剌使用,開啟另一個檔案時,可以隨意再開啟一個檔案編號檔案緩衝來使用,但不同的檔案在未關閉時,不得使用相同的檔案緩衝來處理,因你的檔案處理是跨越許多副程式且檔案緩衝編號都是隨意給定時,想再開啟一個檔案緩衝... 阅读全文
posted @ 2009-04-23 09:28 炜升 阅读(464) 评论(0) 推荐(0) 编辑
摘要: GML也能以workspace的形式打开,用到的是FMEWorkspaceFactory,使用FMEWorkspaceFactory前要添加引用:ESRI DataInterop Object Library.Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/... 阅读全文
posted @ 2009-04-23 09:23 炜升 阅读(496) 评论(0) 推荐(0) 编辑