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

Lastread problem with extrabytes #13

Open
mariolino007 opened this issue Mar 23, 2021 · 4 comments
Open

Lastread problem with extrabytes #13

mariolino007 opened this issue Mar 23, 2021 · 4 comments

Comments

@mariolino007
Copy link

Hello

I am trying to use the Digital-Forestry-Toolbox tool, it is very well done.
I have already tried some functions, lasread and laswrite I find them very interesting.
Unfortunately I'm having problems loading a las with extra bytes created with Cloudcompare, I should first load them, then I should perform some calculations on the field "New Extra (P01)" in Matlab and then use Laswrite to write the las again.
Can you help me ?

Currently Matlab gives me this error:

WARNING: The point data record contains an extra 4 byte field: "new_extra_p01"
reading point data record...
Error using bitshift
Invalid data type. First and second arguments must be integer or double.

Error in LASread (line 2229)
bytes(:,k) = bitshift(cast(blob(ind_start: step : ind_end), r.record(j).type{:}),
nbitshift);

Thanks
Stefano from Italy

PS Sorry for my English I use deepl for a better translation
PPS I attach the point cloud that gives me this error

tree_1a.zip

@mparkan
Copy link
Owner

mparkan commented Apr 5, 2021

Hello,

Could you try the attached version of LASread and let me know if it returns the expected values for the "new_extra_p01" field?

LASread.zip

@mariolino007
Copy link
Author

mariolino007 commented Apr 6, 2021 via email

@mparkan
Copy link
Owner

mparkan commented Apr 12, 2021

Hello,

It looks like the file attachment "bush_1b.las" is missing. Could you repost it?

@mariolino007
Copy link
Author

Hello,
do you have a suggestion for the other questions ?
Many thanks.....

bush_1b.zip

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

No branches or pull requests

2 participants