mparkan / Digital-Forestry-Toolbox

A collection of digital forestry tools for Matlab/Octave
http://mparkan.github.io/Digital-Forestry-Toolbox/
GNU General Public License v3.0
46 stars 16 forks source link

error reading LAS file #7

Closed ericINRAE closed 3 years ago

ericINRAE commented 4 years ago

Hi, When reading a LAS file containing an extra scalar field, of type unsigned char (type 1), using the function LASread, I got the error message: "Error using zeros CLASSNAME input must be a valid numeric or logical class name."

In the file LASread.m, I had to replace line 1645: r.extra_bytes(k).type = 'uchar' by r.extra_bytes(k).type = 'uint8';

as the string 'uchar' is not recognized by the Matlab function zeros.

mparkan commented 3 years ago

Hi, thanks for reporting the issue and sorry for the slow response. It should work as expected now.