激活运行 libLAS C++ R 中的库
我想使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于这个问题
答案是巨大的是的!因为使用它来将R粘合到给定的C /C++ 库几乎就是 Rcpp 编写的原因。请查看文档和/或 rcpp-devel 列表中的示例。 Rcpp 模块 发生了一些令人兴奋的新事情,但您也可以继续使用老式的方式来编写包装器。 Rcpp 使映射以及 R 和 C++ 类型(双向)变得更加容易。
For the question
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.