AGSL Home

Site Index

American Geograhical Society Library

 

GIS Services

GIS Overview

Digital Spatial Data

Wisconsin Data

Software and Tools

GIS Links

GIS News

GIS at UWM

Contact Info

Digital Spatial Data Clearing House

ArcGIS Tip A2

Calculating the Perimeter for a polygon shapefile

  1. Optionally, start an edit session in ArcMap. Calculating a field is faster outside of an edit session, but you won't be able to undo the calculation.
  2. Open the attribute table of the layer you want to edit.
  3. Right-click the field heading for perimeter (if there is no field holding perimeter values you can add a new field for perimeter by clicking the options button and selecting the new field option).
  4. Click Calculate Values.
  5. Check Advanced.
  6. Type the following VBA statement in the first text box:
  7. Dim dblPerimeter as double
    Dim pCurve as ICurve
    Set pCurve = [shape]
    dblPerimeter = pCurve.Length
  8. Type the variable dblPerimeter in the text box directly under the perimeter field name.
  9. Click OK.
  10. Tip: The property length returns a field type of double. For best results, your length field should also be a double field type.

This text comes directly from the ArcGIS help window and can be reached by first locating "Fields in tables" in the index and then "calculating values".

Return to top of page


Comments for the AGSL? Send them to agsl@uwm.edu.