ArcGIS Field Calculate 批量修改字段值
Field Calculate功能很强大,仅仅举一个例子来说明其强大功能的一个方面。
dim oldBH as String
oldBH = [BH]
dim newBH as String
select case oldBH
case "类别1"
newBH = "1001"
case "类别2"
newBH = "1002"
case "类别3"
newBH = "1003"
case "类别4"
newBH = "1004"
case else
newBH = oldBH
end select
oldBH = [BH]
dim newBH as String
select case oldBH
case "类别1"
newBH = "1001"
case "类别2"
newBH = "1002"
case "类别3"
newBH = "1003"
case "类别4"
newBH = "1004"
case else
newBH = oldBH
end select