How can I calculate the cumulative sum of a set of attributes with basal area?


asked 09 Oct '14, 21:01

Andras's gravatar image

accept rate: 0%

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

permanent link

answered 09 Oct '14, 21:42

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 09 Oct '14, 21:01

question was seen: 7,181 times

last updated: 09 Oct '14, 21:42