Hi! How can I calculate the cumulative sum of a set of attributes with basal area? Thanks! asked 09 Oct '14, 21:01 Andras |
Suppose that you have an entity called "tree", a calculated attribute inside of it "tree_num" with the position of the tree (idm:position() expression can be used), and a calculated attribute for the basal area, we can call it ba for example, then you can sum the basal area of the previous inserted trees with an expression like this: sum(parent()/tree[tree_num < $this/parent()/tree_num]/ba). Thanks answered 09 Oct '14, 21:42 Stefano (OF) ♦♦ |