I would like to check the amount of trees measured with a DBH less than 20 cm in my survey for sample tree selection purposes. Is this possible in Collect?


asked 09 Oct '14, 20:52

Andras's gravatar image

accept rate: 0%

Yes sure. Suppose that you have for example a biophisycal survey structured like cluster -> plot -> tree and you have an attribute "dbh" inside the "tree" entity, then you can select the trees that have a DBH greater than 20 with this expression: tree[dbh > 20].

Don't forget that the expressions will be evaluated considering the parent entity current schema node as "context", so the expression written before is valid if it's defined inside a attribute contained into the "plot" entity (the context will be "plot"). Instead, if you want to use it in an attribute defined inside the "tree" entity, the expression will become: parent()/tree[dbh > 20]. Thanks

permanent link

answered 09 Oct '14, 21:34

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, 20:52

question was seen: 6,664 times

last updated: 09 Oct '14, 21:34