Dear OF Team and Fellow Users,

how could I have a tree_id attribute being the same for all the forks of a forked tree?

Thanks!

Andras

asked 03 Nov '18, 08:02

Andras's gravatar image

Andras
18481952
accept rate: 0%


Dear Andras,

add two key attributes: alt text

Regards, Lauri

permanent link

answered 06 Nov '18, 15:16

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

Lauri (OF) ♦♦
6752815
accept rate: 21%

Dear Lauri,

I forgot to mention, that I'd like the tree ID to be automatically created. I assume the above suggestion only works, if the user records the same tree_no manually for multiple forks.

BR, Andras

permanent link

answered 12 Nov '18, 14:02

Andras's gravatar image

Andras
18481952
accept rate: 0%

Dear Andras,

that's correct, it works if you add tree_no manually. A possible solution in your case would be that you set default for the first tree_no as 1, and tree_stem_no as 'Not required'. And when if you add tree_stem_no=1 manually, next tree_no will be set by using an expression to the same as previous tree_no. But it works not correctly after entering the last fork.

Well, another solution from golden Fortran era: add the first field where you fill in how many forks you are going to record for a tree. Then create expression where tree_no is replicated and tree_stem_no increases automatically...

BR, Lauri

permanent link

answered 19 Nov '18, 09:36

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

Lauri (OF) ♦♦
6752815
accept rate: 21%

Dear Lauri,

At the and I have solved the issue by adding two Boolean attributes (one for forked vs not-forked and one for first fork vs not-first-fork) and a calculated attribute for the sum of non-first forks on the plot. With the help of these I am able to calculate both, tree_no and tree_stem_no. I was hoping for a bit more simple solution.

Thanks for your comments on this all the same!

BR, Andras

permanent link

answered 19 Nov '18, 09:57

Andras's gravatar image

Andras
18481952
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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:

×493

question asked: 03 Nov '18, 08:02

question was seen: 2,850 times

last updated: 19 Nov '18, 09:57