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

add a constructor that just needs the pointcloud #48

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

MeganDawson42
Copy link
Collaborator

Add a LASDataset constructor from a pointcloud (no preconstructed header required)

Description

Minor change to add a constructor from ONLY a pointcloud

Types of Changes

  • New feature (non-breaking change which adds functionality)

Review

List of tasks the reviewer must do to review the PR

  • Tests
  • Documentation
  • CHANGELOG

Signed-off-by: Megan Dawson <meganldawson42@gmail.com>
BenCurran98
BenCurran98 previously approved these changes Jan 6, 2025
Copy link
Collaborator

@BenCurran98 BenCurran98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I think this is a good compromise for now to be able to get subsets of datasets until we think of a nicer interface to do this with. Can you please also bump the version in the Project.toml?

Signed-off-by: Megan Dawson <meganldawson42@gmail.com>
src/header.jl Outdated
"""
$(TYPEDSIGNATURES)

Get the scale for point positions in a LAS file from a header `h`. Checks consistent scale for ALL axis.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Axis is singular, if you mean plural it should be axes.

src/header.jl Outdated
"""
function scale(h::LasHeader)

@assert (h.spatial_info.scale.x == h.spatial_info.scale.y) && (h.spatial_info.scale.y == h.spatial_info.scale.z) "We expect all axis to be scale similarly"
Copy link
Collaborator

@i-kieu i-kieu Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here and "scaled" for past tense

i-kieu
i-kieu previously approved these changes Jan 6, 2025
Signed-off-by: Megan Dawson <meganldawson42@gmail.com>
@MeganDawson42 MeganDawson42 merged commit abefc77 into main Jan 7, 2025
9 checks passed
@MeganDawson42 MeganDawson42 deleted the ConstructorNOHeader branch January 7, 2025 03:37
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