Forums
Reducing QSM to Stem and main branches - Printable Version

+- Forums (https://www.simpleforest.org/forums)
+-- Forum: QSM (https://www.simpleforest.org/forums/forumdisplay.php?fid=1)
+--- Forum: QSM - Tools to Generate (https://www.simpleforest.org/forums/forumdisplay.php?fid=2)
+---- Forum: SimpleForest (https://www.simpleforest.org/forums/forumdisplay.php?fid=3)
+---- Thread: Reducing QSM to Stem and main branches (/showthread.php?tid=180)



Reducing QSM to Stem and main branches - Andreas Luka - 02-13-2023

For displaying the trees in GIS or BIM environment I need a reduced version of the QSM to stem with first and maybe second order branches. What would be the best approach?

I tried to filtering the resulting qsm csv file and read it back (R script) using branchOrder < 3. But reading it back fails. It looks like the topology is not valid anymore.


RE: Reducing QSM to Stem and main branches - SimpleForest - 05-23-2023

Hi

Sorry for late reply. The topology is defined by:

* A unique ID - positive number
* A parent ID - the unique ID of the parent. If no parent exists (for the root) there is a -1
* Unique IDs have no gaps, e.g. 0,1,2,3,4,5 but no 0,1,5 allowed. The importer will struggle because of internal structures.

So if you remove from 1'000 cylinder 900 and only keep 100 - the inner structure - then your unique IDs should also only represent 0-99. But you might have numbers larger 99 included.