激活运行 libLAS C++ R 中的库

发布于 2024-10-04 09:46:46 字数 750 浏览 0 评论 0原文

我想使用 R 中的 libLAS C/C++ 库函数来导入、分析、导出地面激光雷达数据。 libLAS 是一个 C/C++ 库,用于读写非常常见的 LAS LiDAR 格式 ( http://liblas.org/index .html )。

是否可以使用 Rcpp 包来运行这个库(或其他包)? http://dirk.eddelbuettel.com/code/rcpp.html

或者我应该编译并安装它,以便按照编译说明使用它 http://liblas.org/compilation.html ?我正在 MacOSx 10.6.5 上工作。因此,我也可以在开源 GIS GRASS 中使用它,如以下 wiki http:// /grass.osgeo.org/wiki/LIDAR#Micro-tutorial_for_LAS_data_import

欢迎提出有关使用 R/GRASS 读取和处理 LIDAR 数据的所有建议。 谢谢, 扬

I would like to use the libLAS C/C++ library functions within R to import, analyse, export terrestrial lidar data. libLAS is a C/C++ library for reading and writing the very common LAS LiDAR format ( http://liblas.org/index.html ).

Would it be possible to use the Rcpp package to run this library (or other packages)? http://dirk.eddelbuettel.com/code/rcpp.html

Or should I compile and install it in order to use it following the compilation instructions http://liblas.org/compilation.html ? I am working on a MacOSx 10.6.5. As such I could also use it within Open Source GIS GRASS as described in the following wiki http://grass.osgeo.org/wiki/LIDAR#Micro-tutorial_for_LAS_data_import .

All advice is welcome related to reading and processing LIDAR data with R/GRASS.
Thanks,
Jan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

顾铮苏瑾 2024-10-11 09:46:46

对于这个问题

是否可以使用Rcpp
包来运行这个库(或其他
包)?

答案是巨大的是的!因为使用它来将R粘合到给定的C /C++ 库几乎就是 Rcpp 编写的原因。请查看文档和/或 rcpp-devel 列表中的示例。 Rcpp 模块 发生了一些令人兴奋的新事情,但您也可以继续使用老式的方式来编写包装器。 Rcpp 使映射以及 R 和 C++ 类型(双向)变得更加容易。

For the question

Would it be possible to use the Rcpp
package to run this library (or other
packages)?

the answer is whopping Yup! as using it for glueing R to a given C/C++ library was pretty much the reason Rcpp was written for. Come and see the documentation and/or the rcpp-devel list for examples. There is some exciting new stuff happening with Rcpp modules but you can also get going the old-fashioned way of writing your wrapper. Rcpp makes mapping and R and C++ types (in both directions) a lot easier.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文