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

Reverse coordinate system conversion on write #31

Merged
merged 4 commits into from
Jun 17, 2024
Merged

Conversation

BenCurran98
Copy link
Collaborator

@BenCurran98 BenCurran98 commented Jun 16, 2024

Reverse Coordinate System Conversions When Writing

Description

When reading a LAS dataset, we have the option of converting the positions to metres for convenience for users. However this makes the points inconsistent with header information such as the bounding box and any coordinate system VLRs (OGC WKT format). To fix this, I've avoided messing around with the header stuff when we do the conversion, and instead made it so we keep track of conversion factors applied to points and just reverse this when it's time to write our data. This will mean users can read in a dataset in metres, do their analysis, then write it back in the same format they got it in

Types of Changes

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

Tasks

List of tasks you will do to complete the PR

  • Write code to keep track of conversion factors in LasDataset
  • Reverse conversion on write
  • Find test case(s)

Review

List of tasks the reviewer must do to review the PR

  • Tests
  • Documentation

Signed-off-by: BenCurran98 <b.curran@fugro.com>
Signed-off-by: BenCurran98 <b.curran@fugro.com>
MeganDawson42
MeganDawson42 previously approved these changes Jun 16, 2024
Signed-off-by: BenCurran98 <b.curran@fugro.com>
Signed-off-by: BenCurran98 <b.curran@fugro.com>
@BenCurran98 BenCurran98 merged commit 5d0449d into main Jun 17, 2024
9 checks passed
@BenCurran98 BenCurran98 deleted the ReverseUnitConv branch June 17, 2024 01:29
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.

4 participants