using spcd when modifying tree attributes #7
|
i'd like to change the species distribution in a tree inventory using the new FF SDK. it looks like SPCD is supported in the conditions and actions fields, but it's not clear how the action operators (add, multiply, etc.) would apply since SPCD is a classification code, not a scalar value. for example, what would the modification object look like to remove SPCD 1234 from the inventory? |
Replies: 2 comments 1 reply
|
Hi @crawld good question. Which actions are available depend on the condition selected. So if you have an action where "SPCD" is selected as the condition, then "replace" is the only modifier available. But, if you have an action where "DIA" is the condition, then modifiers can be "multiply" "divide" "add" "subtract" "replace".
|
|
For your other question, a modification to remove SPCD 1234 would look like: I don't love the attribute: "all" mechanism, but I couldn't think of anything better at the time. Let me know if you think of anything better. |


Hi @crawld good question.
Which actions are available depend on the condition selected.
So if you have an action where "SPCD" is selected as the condition, then "replace" is the only modifier available.
But, if you have an action where "DIA" is the condition, then modifiers can be "multiply" "divide" "add" "subtract" "replace".