rapidlasso / lastoolspluginqgis3 Goto Github PK
View Code? Open in Web Editor NEWLAStools Plugin for QGIS3 realized with Processing
License: GNU General Public License v3.0
LAStools Plugin for QGIS3 realized with Processing
License: GNU General Public License v3.0
I'm trying to view a .las file with LAStools. I used ctrl+k to find lasview
, and I use the file browser to pick a file, so the path is correct, but it says the path is not found. I'm using Windows, LAStools 1.0, and QGIS 3.2.2.
LAStools command line
C:\LAStools\bin\lasview -i "C:/Users/my_user/home/projects/lidar_exploration/las_data/sample_file.las" -points 5000000
LAStools console output
The system cannot find the path specified.
Hi,
I am using QGIS 3.14 on Ubuntu focal.
I downloaded lastools and unzipped the archive. I ran make to create the libs for linux.
I then opened qgis and clicking on the wrench in the toolbox I set the directory for the LAStools folder correctly.
When I set the directory of wine (which is installed) to /usr/bin and click OK QGIS crashes every time.
Regards,
Hello
When I try to run any tool with the .las entry, I receive this message:
Traceback (most recent call last):
File "C:/Users/Raphael/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools\LAStools\lasground.py", line 75, in processAlgorithm
LAStoolsUtils.runLAStools(commands, feedback)
File "C:/Users/Raphael/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools\LAStoolsUtils.py", line 61, in runLAStools
feedback.pushConsoleInfo(output.decode("utf-8"))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 15: invalid start byte
I try different data source (usgs and government of quebec) but the same message appears.
Any idea to help ?
Thanks
Hi,
When i try use the plugin and chose a file in path with special characters, QGIS return with msg:
LAStools command line
C:/LAStools\bin\lasview -i "R:\FTP\07 Geração do Modelo Digital de Superfície\LOTE-01\MDS\SC-24-Z-D-I-2-NE-A-I-4-D.las" -points 5000000
LAStools console output
Traceback (most recent call last):
File "C:\Users/56565464/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools\LAStools\lasview.py", line 67, in processAlgorithm
LAStoolsUtils.runLAStools(commands, feedback)
File "C:\Users/56565464/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools\LAStoolsUtils.py", line 61, in runLAStools
feedback.pushConsoleInfo(output.decode("UTF-8"))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe7 in position 90: invalid continuation byte
Execution failed after 0.41 segundostion 90: invalid continuation byte
Note 1: I use windows 10 Pro 20h2.
Note 2: I tested the plugin with Windows 11 and work without errors.
After I download LAStools from here where do I put this folder so it's accessible to QGIS's path? I added that folder to my system path but when I try to run las2shp
I get the following output showing that it's looking for it in C:
but I'm on MacOS
LAStools command line
C:\LAStools/bin/las2shp -v -gui -i "/Users/me/Downloads/file.las"
LAStools console output
/bin/sh: C:LAStools/bin/las2shp: No such file or directory
las2shp
is available from my command line, however.
I get this response but no generation of any results or viewer.
QGIS version: 3.12.3-București
QGIS code revision: 82342615
Qt version: 5.14.2
GDAL version: 3.0.4
GEOS version: 3.8.1-CAPI-1.13.3
PROJ version: Rel. 6.3.1, February 10th, 2020
Processing algorithm…
Algorithm 'lasview' starting…
Input parameters:
{ 'ADDITIONAL_OPTIONS' : '', 'COLORING' : 0, 'GUI' : False, 'INPUT_LASLAZ' : '/home/jim/Documents/MOTTMAC/PROCESSING TESTING/Mapware/A430/A430.LAZ', 'POINTS' : 5000000, 'SIZE' : 0, 'VERBOSE' : False }
LAStools command line
C:\LAStools/bin/lasview -i "/home/jim/Documents/MOTTMAC/PROCESSING TESTING/Mapware/A430/A430.LAZ" -points 5000000
LAStools console output
/bin/sh: C:LAStools/bin/lasview: No such file or directory
Execution completed in 0.03 seconds
Results:
{'': None}
Loading resulting layers
Algorithm 'lasview' finished
When i try to use las2dem from Linux, it want to use the Windows version !
Here is the message :
LAStools command line
C:\LAStools/bin/las2dem -v -i "/home/user/data/LIDARHD_1-0_LAZ_MQ-0770_6281-2021/test_CC.las" -keep_class 2 -step 1.0 -o "/home/user/data/LIDARHD_1-0_LAZ_MQ-0770_6281-2021/output"
LAStools console output
/bin/sh: 1: C:LAStools/bin/las2dem: not found
Here's the error report:
An error has occurred while executing Python code:
TypeError: QgsProcessingParameterFileDestination(): arguments did not match any overloaded call: overload 1: too many arguments overload 2: argument 1 has unexpected type 'str'
Traceback (most recent call last):
File "....../QGIS/QGIS3\profiles\default/python/plugins\LAStools\LAStoolsPipelines\flightlinesToMergedCHM_SpikeFree.py", line 49, in initAlgorithm
self.addParametersRasterOutputGUI()
File "....../QGIS/QGIS3\profiles\default/python/plugins\LAStools\LAStoolsAlgorithm.py", line 269, in addParametersRasterOutputGUI
self.addParameter(QgsProcessingParameterFileDestination(LAStoolsAlgorithm.OUTPUT_RASTER, "Output raster file", "tif", "", True, False))
TypeError: QgsProcessingParameterFileDestination(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 1 has unexpected type 'str'
Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
QGIS version: 3.0.2-Girona Girona, 307d082e3d
I also couldn't see LASTools when searching for it from within QGIS, hence why I'm installing from the zip.
Couldn't load plugin 'LAStools' due to an error when calling its classFactory() method
AttributeError: module 'LAStools' has no attribute 'classFactory'
Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 334, in _startPlugin
plugins[packageName] = package.classFactory(iface)
AttributeError: module 'LAStools' has no attribute 'classFactory'
LAStoolsUtils.runLAStools(commands, feedback)
File "C:/Users/chdo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools\LAStoolsUtils.py", line 61, in runLAStools
feedback.pushConsoleInfo(output.decode("utf-8"))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x86 in position 5: invalid start byte
Versão do QGIS: 3.12.3-București
Código de revisão do QGIS: 8234261527
Versão do Qt: 5.11.2
Versão do GDAL: 3.0.4
Versão do GEOS: 3.8.1-CAPI-1.13.3
Versão do PROJ: Rel. 6.3.2, May 1st, 2020
A processar o algoritmo...
Algoritmo 'lasinfo' starting…
Parâmetros de entrada:
{ 'ADDITIONAL_OPTIONS' : '', 'COMPUTE_DENSITY' : False, 'CPU64' : False, 'GUI' : False, 'HISTO1' : 0, 'HISTO1_BIN' : 1, 'HISTO2' : 0, 'HISTO2_BIN' : 1, 'HISTO3' : 0, 'HISTO3_BIN' : 1, 'INPUT_LASLAZ' : 'C:\Users\Miguel Morais\Downloads\nd_lidar.las', 'REPAIR_BB' : False, 'REPAIR_COUNTERS' : False, 'VERBOSE' : False }
LAStools command line
C:/Users/Miguel Morais/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins/LAStools\bin\lasinfo -i "C:\Users\Miguel Morais\Downloads\nd_lidar.las"
LAStools console output
'C:/Users/Miguel' is not recognized as an internal or external command,
operable program or batch file.
Execução completa em 0.08 segundos
Resultados:
{'': None}
A carregar as camadas resultantes
Algoritmo 'lasinfo' terminado
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.