|
Hi Armando, I found that there was lacking quotation marks around the name of the Layer. But now what follows is this then I do not know how to proceed. Cheers, Reinaldo ![]() P.S. The modified macro, that I am running on Maptitude 4.6: // Returns an options array where the name of the option is the Name of the polygon and the value is its perimeter // it also returns the total perimeter of all areas found // Macro "GetPolygons" (sLayerName, sSetName, sNameField) SetLayer("Favelas2010") // This problem was solved if sNameField = null then sNameField = "ID" rh = GetFirstRecord (sLayerName + "|" + sSetName) // Now stops here... arPerimeters = {} nTotper = o while rh <> null do nPer = GetPerimeter(rh2id(rh)) arPerimeters.(sLayerName.(sNameField)) = nPer nTotper = nTotper + nPer rh = GetNextRecord (sLayerName + "|" + sSetName ,, ) end Return( { arPerimeters, nTotper} ) endMacro Armando Scalise wrote:
|
- [Maptitude] How to calculate perimeter? Reinaldo Paul Pérez Machado
- Re: [Maptitude] How to calculate perimet... Armando Scalise
- Re: [Maptitude] How to calculate per... Reinaldo Paul Pérez Machado
- Re: [Maptitude] How to calculate per... Reinaldo Paul Pérez Machado
- [Maptitude] Re: How to calculate... dr_haspel
- Re: [Maptitude] Re: How to c... Reinaldo Paul Pérez Machado
- Re: [Maptitude] Re: How... Armando Scalise
- Re: [Maptitude] Re:... Reinaldo Paul Pérez Machado
- RE: [Maptitude] How to calculate perimet... Kjartan Stefansson
- Re: [Maptitude] How to calculate per... Armando Scalise
- Re: [Maptitude] How to calculate... Reinaldo Paul Pérez Machado

