Closed azh2 closed 3 years ago
What you want to do is not natively supported but the LAScatalog processing engine has enough flexibility to do it. First read this wiki page. And also ?lidR::lidR-LAScatalog-drivers
.
Then, if you are still struggled please ask a question on gis.stackexchange with the tag lidr
where I will be able to give you a detailed and comprehensive answer. You must also provide a minimal reproducible example. Your current example is not minimal (80% of the code is useless with regard to your question) and is not reproducible (no example data, no mention of the processing options, ...).
After thinking about it, you never mentioned that you want to write files. Thus
return(list(ttops = ttops, crowns = crowns))
is expected to work. Anyway please ask on gis.stackexchange being very specific on what you want to achieve.
I have the following user-defined
catalog_apply
function which creates both tree tops and tree crowns, I want to return both, how might I go about doing that?