# NOT RUN {
# required packages
require(uavRst)
require(link2GI)
# create and check the links to the GI software
giLinks<-uavRst::linkGI()
if (giLinks$saga$exist & giLinks$otb$exist & giLinks$grass$exist) {
# project folder
projRootDir<-tempdir()
# create subfolders please mind that the pathes are exported as global variables
paths<-link2GI::initProj(projRootDir = projRootDir,
projFolders = c("data/","data/ref/","output/","run/","las/"),
global = TRUE,
path_prefix = "path_")
data(chm_seg)
# calculate treepos using uavRst generic approach
tPos <- uavRst::treepos_GWS(chm = chm_seg[[1]],
minTreeAlt = 2,
maxCrownArea = 150,
join = 1,
thresh = 0.35,
split=TRUE,
cores=1,
giLinks = giLinks )
}
##+
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab