
Resolve multi_tiges_id into stem_grouping (Internal)
dot-apply_stem_grouping.Rdmulti_tiges_id is a staging column holding the tag of the
main stem, while data_individuals.stem_grouping stores that stem's
id_n. Once the batch is inserted every id_n is known, so the
tags are resolved here — against this batch first, then against individuals
already in the plot — and written in a single UPDATE inside the same
transaction.
Details
Rows whose parent cannot be resolved are left ungrouped and reported;
validate_individual_data flags them as errors beforehand.