GIS@Grinnell banner logo Grinnell College Grinnell College

GIS@Grinnell : Training

Calculating the Perimeter of a Polygon Feature

  • Open the attribute table of the layer you want add perimeter values to.
  • 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).
  • Click Calculate Values.
  • Check Advanced.
  • Type or paste the following VBA statement in the first text box.
    • Dim dblPerimeter as double
    • Dim pCurve as ICurve
    • Set pCurve = [shape]
    • dblPerimeter = pCurve.Length
  • Type or paste the variable dblPerimeter in the text box directly under the perimeter field name.
  • Click OK.
  • Tip: The property length returns a field type of double. For best results, your length field should also be a double field type.
 

 

[Academics] [Directory] [Instructional Technologies] [ITS] [Libraries] [PioneerWeb]
last updated: 1/4/2008 by Fred Hagemeister Copyright © 2006 Grinnell College Grinnell, IA 50112 641-269-3031
[ Valid XHTML 1.0!] [ Valid CSS!] [ Level Triple-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0] `