| GIS@Grinnell
: Training
Calculating the Area of Polygon Features
- Open the attribute table of the layer you want to add
area values to.
- Right-click the field heading for area (if there is no
field holding aerial values you can add a new field for
area by clicking the options button and selecting the new
field option).
- Click Calculate Values.
- Check Advanced.
- Type or paste the following VBA statement in the first
text box:
- Dim dblArea as double
- Dim pArea as IArea
- Set pArea = [shape]
- dblArea = pArea.area
- Type or paste the variable dblArea in the text box directly
under the area field name.
- Click OK.
- Note: The property area returns a field type of double.
For best results, your area field should also be a double
field type.
|