ARCGIS9.3 字段计算器 VAB ----怎么在字段的后面统一加6个0 ?
3个回答
展开全部
这个很简单,在属性表中进行字段运算就可以了
dim pQueryFilter as IQueryFilter
set pQueryFilter = new QueryFilter
pQueryFilter.where....组织你的条件
dim pFClass as IFeatureClass
set pFClass= 你传入的图层FeatureClass
dim pFCursor as IFeatureCursor
set pFCursor= pFClass.Search(pQueryFilter,false)
dim pFeature as IFeature
set pFeature= pFCursor.NextFeature()
循环记录,并启动编辑,加上代码(IWorkspaceEdit.StartEditing )
while not pFeature is nothing
pFeature.某个字段.value=pFeature.字段A + pFeature.字段B +....
set pFeature= pFCursor.NextFeature()
pFeature.store
wend
停止编辑(pWorkspaceEdit.StopEditing )
dim pQueryFilter as IQueryFilter
set pQueryFilter = new QueryFilter
pQueryFilter.where....组织你的条件
dim pFClass as IFeatureClass
set pFClass= 你传入的图层FeatureClass
dim pFCursor as IFeatureCursor
set pFCursor= pFClass.Search(pQueryFilter,false)
dim pFeature as IFeature
set pFeature= pFCursor.NextFeature()
循环记录,并启动编辑,加上代码(IWorkspaceEdit.StartEditing )
while not pFeature is nothing
pFeature.某个字段.value=pFeature.字段A + pFeature.字段B +....
set pFeature= pFCursor.NextFeature()
pFeature.store
wend
停止编辑(pWorkspaceEdit.StopEditing )
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你的字段是什么类型的
更多追问追答
追问
字段类型 STRING
追答
用字段运算就可以
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询