Hi Martin,
I'm new to LAStools. I'm helping develop a FWF underwater LiDAR. I support Open Data. As well, I want to make sure we could take advantage of existing LAS FWF tools like TerraSolid's TerraSurface that provide FWF data display out-of-the box.
To get my feet wet, I thought I would try to extend the example
las_example_write_only_with_extra_bytes.cpp to write a LAS file with some fake FWF data to an external WDP file, e.g., 1 waveform packet descriptor, perhaps 2 or 3 returns per pulse with synthetic return point locations, e.g., creating a file that reproduces the
ASPRSorg Wiki description here using synthetic waveform data (with multiple returns / pulse in a single WDP to keep it simple). (Since we're underwater, no refracted pulses.)
However, I can't really find any example code (including laszip.cpp) that starts from scratch, e.g., defining a waveform packet descriptor (e.g., LASvlr_wave_packet_descr.setTemporalSpacing(), etc.), linking a LASpoint to a descriptor (e.g., LASwavepacket.setIndex()), properly calculating the offset for more than one point (given a fixed waveform packet size for each point), writing the FWF data, etc.
Have you coded such an example that you can share?
Thanks for anything additional you can provide to help me get started here.
Best,
/eric rehm
Université Laval / Takuvik