The Wayback Machine - https://web.archive.org/web/20210802003300/https://github.com/daavoo/pyntcloud/issues/273
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

can not get las file header vlrs information #273

Open
darkclip opened this issue Jan 21, 2020 · 1 comment
Open

can not get las file header vlrs information #273

darkclip opened this issue Jan 21, 2020 · 1 comment

Comments

@darkclip
Copy link

@darkclip darkclip commented Jan 21, 2020

In las file format, vlrs info is crucial to correctly describe point's spatial location.
However, if you try to use pyntcloud.las_header.vlrs, you wouldn't get anything, the value is alway none.

Through your source code, I can see you try to use
data["las_header"] = las.header
But it can not pass vlrs or evlrs info into new object, because in laspy, vlrs info is dynamically obtained afterwards
vlrs = property(get_vlrs, set_vlrs, None, doc)
def get_vlrs(self): return(self.reader.get_vlrs())

A simple fix would be add something like
data["las_vlrs"] = las.header.vlrs data["las_evlrs"] = las.header.evlrs

Please fix this issue, otherwise, las file support is equal to none existence.

@daavoo
Copy link
Owner

@daavoo daavoo commented Jan 21, 2020

Hola @darkclip , thanks for the detailed bug report.

If you find time to implement the fix you propose the Pull Request would be more than wellcome. If not I will try to find some time to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants