Stem number for forked tree

  • Asked
  • Active
  • Viewed 5380 times
0

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

0

Accepted answer

Dear Andras,

add two key attributes: alt text

Regards, Lauri

0

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

0

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

0

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

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.