Using LASzip in C (for Swift integration)

41 views
Skip to first unread message

Ben Meb

unread,
May 16, 2025, 3:09:36 PMMay 16
to LAStools - efficient tools for LiDAR processing

Hello,

I'm new to the LAS/LAZ formats, and I'm currently developing a tool in Swift that requires compressing LAS files to LAZ using LASzip.

Since Swift can interface directly with C but not C++, is there a known or recommended way to use LASzip from a pure C environment — for example, via a C wrapper around its C++ API?

Any guidance or examples would be greatly appreciated.

Thank you,
Ben

LAStools - efficient tools for LiDAR processing

unread,
May 16, 2025, 3:14:13 PMMay 16
to LAStools - efficient tools for LiDAR processing
Hi Ben,
it would be very old fashioned if swift could only call C and not C++.
Anyway: This is more a user group for LAStools, not the place for issues in programming/using the API.

Cheers,

Jochen @rapidlasso

Reply all
Reply to author
Forward
0 new messages