daavoo / daavoo/pyntcloud

can not get las file header vlrs information

Open
#273 1 comment 0 reactions 0 assignees View on GitHub
Bug Good First Issue
Dominant language
Python
Stars
1.5k
Forks
229
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.