Integrating LASzip within a C++ project

911 views
Skip to first unread message

nina

unread,
Jul 4, 2016, 3:31:23 AM7/4/16
to LAStools - efficient tools for LiDAR processing
I had a couple of questions about LASzip. Currently, I am using LASlib to read in LAS files as part of a larger C++ project to classify and identify objects within aerial LiDAR files. I was able to integrate LASlib without much trouble but now I would like to be able to read in .laz files as well. From the documentation it seems as if LASzip depends on a .dll. I am currently using OSX (specifically, Clion and CMake), are there any options to use LASzip in a OSX configuration? 
Please let me know if you have any suggestions about how I can implement this.
Thanks in advance!
-N

Martin Isenburg

unread,
Jul 5, 2016, 5:23:36 AM7/5/16
to LAStools - efficient command line tools for LIDAR processing
Hello Nina,

Assuming you are really using LASlib [1] and not libLAS [2] then you already have the capability to read LAZ files as LASzip [3] is an integral aubset of the LASlib library. The DLL was only created for those who want a simple dynamically linked C interface to add LAS/LAZ read/write capability to their closed-source offering while respecting the original LGPL terms. In the meantime, however, a static linking exception was added to LASzip. Note that the static linking exeption applies only to LASzip (not to LASlib which is the usual LGPL 2.1).

LASlib (with LASzip) compiles without issues using the makefile provided into a library for static linking on MacOS and Linux. A few more defines and you should be able to compile a library for dynamic linking too.

Regards,

Martin @rapidlasso



Reply all
Reply to author
Forward
0 new messages