Home > Common Problem > arcgis attribute table batch assignment

arcgis attribute table batch assignment

(*-*)浩
Release: 2019-08-21 10:02:08
Original
16666 people have browsed it

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                       //结束
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template