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
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
Accepted answer
Dear Andras,
add two key attributes:
Regards, Lauri
Accepted answer
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
Accepted answer
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
Accepted answer
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
Once you sign in you will be able to subscribe for any updates here