Problem with LAStools in QGIS

374 views
Skip to first unread message

Gonçalo Alves

unread,
Feb 23, 2024, 1:45:40 PM2/23/24
to LAStools - efficient tools for LiDAR processing
Hello everyone,

I am trying to process some .laz files and i keep getting the same message:

Traceback (most recent call last):
File "C:\Users/Gonçalo Alves/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools\lastools\core\quality_control_information\lasinfo.py", line 99, in processAlgorithm
LastoolsUtils.run_lastools(commands, feedback)
File "C:\Users/Gonçalo Alves/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools\lastools\core\utils\utils.py", line 59, in run_lastools
feedback.pushConsoleInfo(output.decode("utf-8"))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe7 in position 86: invalid continuation byte

Execution failed after 10.44 segundos


I am using QGIS version 3.34 and my LAStool folder is in C:/


What could be causing this problem?


Regards.



Jochen Rapidlasso

unread,
Feb 27, 2024, 2:21:16 AM2/27/24
to LAStools - efficient tools for LiDAR processing
Hi Goncalo,
most likely this happens because of non ascii chars somewhere.
If this does not fix it: Please copy paste the *full* program log output.
(Just switch to the "Log" tab and do a copy/paste).
It should look somehow like this:
-----------------------------------------

QGIS version: 3.34.3-Prizren

QGIS code revision: 47373234ac

Qt version: 5.15.3

Python version: 3.9.18

GDAL version: 3.8.3

GEOS version: 3.12.1-CAPI-1.18.1

PROJ version: Rel. 9.3.1, December 1st, 2023

PDAL version: 2.6.0 (git-version: 3fced5)

Algorithm started at: 2024-02-27T08:18:14

Algorithm 'las2las - filter (file)' starting…

Input parameters:

{ 'ADDITIONAL_OPTIONS' : '', 'CPU64' : False, 'FILTER_COORDS_INTENSITY1' : 0, 'FILTER_COORDS_INTENSITY1_ARG' : '', 'FILTER_COORDS_INTENSITY2' : 0, 'FILTER_COORDS_INTENSITY2_ARG' : '', 'FILTER_RETURN_CLASS_FLAGS1' : 5, 'FILTER_RETURN_CLASS_FLAGS2' : 0, 'GUI' : False, 'INPUT_LASLAZ' : 'C:\\lastools\\data\\lake.laz', 'OUTPUT_LASLAZ' : 'c:\\temp\\out.laz', 'VERBOSE' : False }


LAStools command line

C:\lastools\bin\las2las -i "C:\lastools\data\lake.laz" -drop_single -o "c:\temp\out.laz"

LAStools console output


Execution completed in 0.23 seconds

Results:

{'commands': ['C:\\lastools\\bin\\las2las',
'-i',
'"C:\\lastools\\data\\lake.laz"',
'-drop_single',
'-o',
'"c:\\temp\\out.laz"']}


Loading resulting layers

Algorithm 'las2las - filter (file)' finished

-----------------------------------------

Thanks,

Jochen @rapidlasso
Reply all
Reply to author
Forward
0 new messages