2009年4月24日
摘要:
1. 将需要的区域移动到mapcontrol中央,并闪烁,为什么总是先闪烁,后移动,更改代码顺序也不行? (ESRI中国社区) 在移动和闪烁中加入MapControl.ActiveView.ScreenDisplay.UpdateWindow 出现这个问题是由于刷新和闪烁不在同一个线程中执行的。闪烁图形是一个很快的操作,而刷新背景却需要比较复杂的计算,所以先出来的语句后执行结束。使用Upd...
阅读全文
posted @ 2009-04-24 15:57
炜升
阅读(235)
推荐(0)
摘要:
ini文件是windows的系统配置文件, 被用来对操作系统或特定程序初始化或进行参数设置. 在Windows系统中,INI文件是很多,最重要的就是“System.ini”、“System32.ini”和“Win.ini”。该文件主要存放用户所做的选择以及系统的各种参数。用户可以通过修改INI文件,来改变应用程序和系统的很多配置。 中间的数据格式一般为: ;注释(Comments) [Secti...
阅读全文
posted @ 2009-04-24 13:57
炜升
阅读(867)
推荐(0)
摘要:
AO Extension to udpate attribute field when editing attribute table. 实现当用户在属性表更新数据时,某个字段也被自动更新.Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Option...
阅读全文
posted @ 2009-04-24 11:44
炜升
阅读(352)
推荐(0)
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
炜升
阅读(290)
推荐(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
炜升
阅读(400)
推荐(0)
摘要:
利用workspace打开某个featureclass时,openFeatueclass方法有时会引发的错误。 这是因为找不到对应名字的featureclass, 而OpenFeatureClass方法自身又没有error handle. 一般情况下,我们可以在openfeatureclass前加上一句on error resume next以防止错误。 下面是一个利用On Error Res...
阅读全文
posted @ 2009-04-23 15:34
炜升
阅读(477)
推荐(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
炜升
阅读(684)
推荐(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
炜升
阅读(401)
推荐(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
炜升
阅读(398)
推荐(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
炜升
阅读(227)
推荐(0)