Often times, when faced with a problem, we programmers dive into coding and forget that a simpler solution to a problem is available using the standard interface.
Kjartan email is an opportune reminder of the kind of habits programmers pick up during in our job :) :) As a rule, before coding a loop through the records of a layer or dataview, see if the same result can be achieved in terms of one or more formula fields. Cheers On Mon, Feb 7, 2011 at 9:10 AM, Kjartan Stefansson <[email protected]>wrote: > > > You can open a dataview on the area layer and create a formula field with > the expression: > > > > GetPerimeter(ID) > > > > Just like the Area field in the dataview, the units of this formula field > will be your current map preferences. Isn’t this what you want? > > > > -Kjartan > > > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Reinaldo Paul Pérez Machado > *Sent:* Friday, February 04, 2011 7:02 PM > *To:* Maptitude Discussion List > *Subject:* [Maptitude] How to calculate perimeter? > > > > > > *Hello, > > Please, I would like to know how is it possible to get the corresponding > perimeter of a bunch of polygons in a geographic files? > > Thanks in advance. Any aid would be very much appreciated. Cheers, > > Reinaldo* > > > -- Armando Scalise
