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 |
Dear Andras, add two key attributes: Regards, Lauri answered 06 Nov '18, 15:16 Lauri (OF) ♦♦ |
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 answered 12 Nov '18, 14:02 Andras |
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 answered 19 Nov '18, 09:36 Lauri (OF) ♦♦ |
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 answered 19 Nov '18, 09:57 Andras |