Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make only one extra bytes vlr per dataset #30

Merged
merged 3 commits into from
Jun 13, 2024
Merged

Conversation

BenCurran98
Copy link
Collaborator

@BenCurran98 BenCurran98 commented Jun 12, 2024

Properly Treat Extra Bytes VLRs in Dataset

Description

This is to fix an inconsistency with how we treat Extra Bytes VLRs in our datasets. Previously we would allow multiple extra bytes VLRs (one corresponding to each "extra user field") however to be technically correct this should be one VLR that contains the records for all extra bytes inside its payload.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • Refactor/improvements

Tasks

List of tasks you will do to complete the PR

  • Add new "collection of Extra Bytes" struct
  • Change functionality to only use one collection VLR for extra bytes in I/O methods
  • Fix tests
  • Ensure Extra Bytes can be read and written consistently (simple I/O checks for both LAS and LAZ)

Review

  • Tests
  • Documentation

Signed-off-by: BenCurran98 <b.curran@fugro.com>
MeganDawson42
MeganDawson42 previously approved these changes Jun 12, 2024
src/write.jl Outdated Show resolved Hide resolved
mazadbakht
mazadbakht previously approved these changes Jun 12, 2024
Signed-off-by: BenCurran98 <b.curran@fugro.com>
@BenCurran98 BenCurran98 force-pushed the FixHandlingExtraBytes branch from 50fc97a to fa5ba6b Compare June 12, 2024 05:29
@BenCurran98 BenCurran98 requested a review from mazadbakht June 12, 2024 05:31
Signed-off-by: BenCurran98 <b.curran@fugro.com>
@BenCurran98 BenCurran98 merged commit 9fd6446 into main Jun 13, 2024
9 checks passed
@BenCurran98 BenCurran98 deleted the FixHandlingExtraBytes branch June 13, 2024 03:07
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.

3 participants