lepcc-ffi
Rust bindings for Esri's LEPCC (Limited Error Point Cloud Compression) library.
LEPCC is the codec behind I3S PointCloud layers. When you fetch a geometry or attribute blob from a lepcc-xyz, lepcc-rgb, or lepcc-intensity resource, this is what decodes it.
Usage
use Context;
// XYZ positions
let ctx = new;
let points: = ctx.decode_xyz?;
// RGB colors
let ctx = new;
let colors: = ctx.decode_rgb?;
// Intensity
let ctx = new;
let intensity: = ctx.decode_intensity?;
The Context handles the underlying C allocation and frees it on drop.
Building
The crate compiles the LEPCC C++ sources directly via the cc crate, so you just need a C++ compiler on your PATH — no separate install of the LEPCC library required.
License
Apache-2.0 — same as the bundled LEPCC library. See extern/lepcc/LICENSE.TXT.