Home  >  Article  >  arcgis attribute table batch assignment

arcgis attribute table batch assignment

(*-*)浩
(*-*)浩Original
2019-08-21 10:02:0816553browse

arcgis attribute table batch assignment

To determine the fields to be assigned values ​​in the attribute table, you can use the "Select By Attributes..." operation under "Options" in the attribute table. In this example, the fields that need to be assigned values ​​are as shown below. ms” (Recommended learning: web front-end video tutorial)

arcgis attribute table batch assignment

The cursor stops in the column On the table header, right-click and select "Field Calculator..."

arcgis attribute table batch assignment

to bring up the dialog box, as shown below, in front of "Advanced" After ticking, the dialog box enters the advanced editing mode

arcgis attribute table batch assignment

Customize the VBA statement. For example, in this example, assign the value to the "ms" column as "25.144" ”, you need to enter the following statement in the Pre-Logic VBA Script Code text box:

dim u as double                // 定义变量u 为double类型
if [ms]=”0”  then              //如果字段ms的当前值为0,则将25.144赋值给u 
u=”25.144” 
else                         //否则,将ms的当前值赋给u u=[ms]  
end if                       //结束

Then enter u in the text box corresponding to “ms=", the text box has the same function Assign the value of variable u to the field ms

arcgis attribute table batch assignment

The result of this example is as shown in the figure below.

arcgis attribute table batch assignment

The above is the detailed content of arcgis attribute table batch assignment. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn