【发布时间】:2022-06-20 06:46:38
【问题描述】:
我有一个点密度为 72.91 点/平方米的 las/laz 文件,我想使用包 {lidR} 中的 lidR::voxelize() 将其点密度设置为 4 点/平方米。
但是,我不知道如何使用给定的参数 <res = > 来实现这一点。
到目前为止我所尝试的:
# original las dataset
original_las
class : LAS (v1.4 format 6)
memory : 5.3 Mb
extent : ??????.?, ??????.?, ???????, ??????? (xmin, xmax, ymin, ymax)
coord. ref. : ETRS89 / UTM zone 32N
area : 828 m²
points : 60.4 thousand points
density : 72.91 points/m²
density : 36.43 pulses/m²
lowres_las <- lidR::voxelize_points(las = original_las,
res = lidR::density(original_las)/18.2275)
# 72.91 points/m² divided by 4 points/m² should bring me
# to a resolution argument of ~18.2275
lowres_las
class : LAS (v1.4 format 6)
memory : 23.9 Kb
extent : ??????.?, ??????.?, ???????, ??????? (xmin, xmax, ymin, ymax)
coord. ref. : ETRS89 / UTM zone 32N
area : 767.9623 m²
points : 304 points
density : 0.4 points/m²
# however, I do not only get the wrong points/m², but also an altered area
【问题讨论】: