You can often see questions about how to calculate the area and length In ArcMap. In the past, I had a blog post about this. Article It is very clear that it is implemented using VBA. Here we describe the calculation process again. The SHP file of the prefecture-level cities in Guangdong province is used to calculate the area of each prefecture-level city and the length of Multi-deformation, paste the image in the step at the same time.
1. load data. Right-click the layer name and select Open attribute table from the shortcut menu to open the Attribute Table of the SHP file.
Right-click menu
Attribute Table
2. Click option in the lower right corner of the Attribute Table, select Add field in the pop-up menu, and add the area field and float type in the add field dialog box.
Add field menu
The area and length fields are added to the Attribute Table.
3. Select the start editing command in the editor editing tool (this step is optional)
4. Select area in the attribute table, right-click the pop-up menu, select field calculator, select advanced in the field calculator dialog box, and enter
Dim parea as iarea
Set parea = [shape]
Enter parea. Area in the text box below area =, and then OK to complete the attribute value calculation of the Area Field.
Select field Calculator
Calculated area in the field calculator dialog box
5. Select length in the attribute table, right-click the pop-up menu, select field calculator, select advanced in the field calculator dialog box, and enter
Dim pcurve as icurve
Set pcurve = [shape]
Enter pcurve. length in the text box below length =, and then OK to complete the attribute value calculation of the length field.
Calculate the length field
Computing Result Display
The above is my implementation process in the arcgis9.2desktop version. I would like to record it and hope to help you!