Skip to content

Fix laz_to_txt and laz_to_pcd output - #624

Merged
JanuszBedkowski merged 5 commits into
MapsHD:mainfrom
capCafu:fix-laz-converters
Nov 7, 2026
Merged

JanuszBedkowski merged 5 commits into
MapsHD:mainfrom
capCafu:fix-laz-converters

Conversation

@capCafu

@capCafu capCafu commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Fixes in two of the console converters (BUILD_WITH_CLI_TOOLS):

  • laz_to_txt appended the raw binary point array after the text lines, and printed timestamps with 6 digits (every point became 1.731e+09). It now writes text only, with full-precision timestamps.
  • laz_to_pcd scaled y and z with x_scale_factor, so LAZ files with per-axis scales came out wrong (y 10x, z 100x in my test). It also wrote xyzi[3] into a 3-element span, which aborts with -D_GLIBCXX_ASSERTIONS.
  • Both passed the header instead of the reader handle to LASzip and never closed the reader.

CI doesn't build the CLI tools (BUILD_WITH_CLI_TOOLS is off). I'm happy to add that in a follow-up.

@JanuszBedkowski

Copy link
Copy Markdown
Member

please resolve conflicts

@capCafu
capCafu force-pushed the fix-laz-converters branch from 96306e0 to a960739 Compare November 7, 2026 14:44
@JanuszBedkowski
JanuszBedkowski merged commit 084bd6f into MapsHD:main Nov 7, 2026
7 checks passed
@capCafu
capCafu deleted the fix-laz-converters branch November 8, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants