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 ability to read just header or vlrs from LAZ #7

Merged
merged 4 commits into from
Apr 30, 2024
Merged

Conversation

BenCurran98
Copy link
Collaborator

This uses a few ideas from LazIO.jl to allow reading just the header of VLRs from a LAZ file without having to fully decompress the file first

Signed-off-by: BenCurran98 <b.curran@fugro.com>
src/read.jl Outdated
# Get a pointer to the header
header_ptr = Ref{Ptr{LazHeader}}()
@check laszip_reader[] laszip_get_header_pointer(laszip_reader[], header_ptr)
laz_header = unsafe_load(header_ptr[])
Copy link
Collaborator

Choose a reason for hiding this comment

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

image

Signed-off-by: BenCurran98 <b.curran@fugro.com>
@BenCurran98
Copy link
Collaborator Author

Actually this got a little too complicated getting things to work with correct VLR parsing etc. For now I've resorted back to just unzipping the whole file, but will raise an issue to deal with this more gracefully later

Signed-off-by: BenCurran98 <b.curran@fugro.com>
Signed-off-by: BenCurran98 <b.curran@fugro.com>
@BenCurran98 BenCurran98 merged commit b194419 into main Apr 30, 2024
9 checks passed
@BenCurran98 BenCurran98 deleted the LazHeaderUtils branch April 30, 2024 06: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.

3 participants