how to install LAStools toolbox in QGIS

The more complex installation instructions are only relevant for older QGIS versions. Starting with QGIS 2.10 or newer you can skip directly to step 4 and disregard most of step 6:

We had an ArcGIS LiDAR processing toolbox since April 2012 and now we have one for QGIS as well. It has been tested successfully with QGIS 1.8.0-Lisboa, 2.0.1-Dufour, 2.2.0-Valmiera, and 2.4.0-Chugiak. Download and install QGIS. For version 2.2.0-Valmiera and older follow all the steps. Do not delete or copy any files for the newest version 2.4.0-Chugiak but skip directly to step 4 and disregard most of step 6:

  1. If you already started QGIS then exit the application.
  2. Delete (or rename) the entire folder “C:\Program Files\QGIS Valmiera\apps\qgis\python\plugins\processing\lidar”.
    QGIS install (step 1)
  3. Put the “.\lidar” folder that is inside this ZIP file into its place. This ZIP file only works for QGIS 2.2.0-Valmiera. For QGIS 2.0.1-Dufour you need to use the contents of this ZIP file instead. And for QGIS 1.8.0-Lisboa use this ZIP file and delete the folder “C:\Users\Martin\.qgis\python\plugins\sextante\lidar” instead.
  4. Get the most recent version of LAStools by downloading the 36 MB “LAStools.zip” file.
  5. Drag and drop (or extract) the “.\LAStools” folder from inside the ‘LAStools.zip‘ file such that there is no space in the path (e.g. bad: “C:\Program Files\LAStools”, good: “D:\software\LAStools”).
  6. Start QGIS. If there is a Python script error carefully repeat steps 1 to 3.
  7. Turn on the “Processing Toolbox” as shown below.
    turning on the "Processing Toolbox"
  8. Switch the processing toolbox from “Simplified Interface” to “Advanced Interface” as shown below.
    Switching the processing toolbox from "Simplified Interface" to "Advanced Interface"
  9. Open the “Options and configuration” sub menu of “Processing” as shown below.
    Opening the "Options and configuration" sub menu of "Processing"
  10. Check the “Activate” button for “Providers->Tools for LiDAR data” and fill in the path to your local LAStools folder as shown below. Type or copy & paste the path to LAStools (as the browse popup is broken). Press <strong>ENTER</strong> after entering the path so the field is greyed out again <em>before</em> clicking <strong>OK</strong>.
    Checking the "Activate" button for "Providers->Tools for LiDAR data" and filling in the path to the local LAStools folder.
  11. Now you should see the “Tools for LiDAR data” in the toolbox and all the LAStools as shown below.
    Seeing the "Tools for LiDAR data" in the toolbox and all the LAStools
  12. Start lasground via double click and fill in the settings as shown below.
    Starting lasground via double click and filling in the settings
  13. Look at the file you just created by running lasview from the toolbox. Yay!
  14. Create this with two quick calls to las2dem and las2iso … sooo easy.
    Result after running las2dem and las2iso on fusa.laz sample

Kudos to Victor Olaya for creating this whole framework and providing me with example scripts for a simple LAStools toolbox that I just had to modify … (-:

107 thoughts on “how to install LAStools toolbox in QGIS

    • Should work but not tested. You will have fewer tools. The LidarToolsAlgorithmProvider.py script has the “isWindows” switch for which tools to expose. And you will need to compile the Linux versions of LAStools yourself, of course.

  1. I have installed it in QGIS Dufour for Mac (it’s in /Applications/QGIS.app/Contents/Resources/python/plugins/processing) but unfortunately just 11 tools appear (like in Linux I guess). Would be nice to see the others as well in future … 🙂

    • You can compile the open source LAStools on OSX. But those are a lot fewer. On Linux folks are using the Window’s *.exe LAStools through ‘wine’ without problem. Is there ‘wine’ on OSX? Then a little tweak to the Python scripts would invoke ‘wine’ to call LAStools. Should be a trivial little change.

      • I have successfully used LAStools .exe’s through wine on OSX in the past, so yes that is the same as under linux.

      • Wine works rather nice on OSX, usually I use Wine Bottler to turn a Win .exe into a Mac.app. Doesn’t work with all programmes but at least for a few.
        If I really need all LAStools in QGIS I can of course also use a Win version in a VM but it would be much nicer to have it working without the VM – but I can’t do anything re Python scripts as I have no skills with that (currently I am getting mad with installing matlib on my Mac – the installation process runs smooth, everything seems to be fine but when I want to install an extension which needs matlib in QGIS is tells me that matlib does not exist – I don’t know if that might have an impact on the Python-LAStool-Wine chain as well)

      • Under linux (Ubuntu 13.10) I had troubles replacing lidar folders (linux path is little different: /user/.qgis/python/plugins/processing/lidar). It caused python errors every time I tried.
        I will try under Windows, but linux Qgis is much more stable.
        Thank You for plugin anyway.

  2. I think it does not work in the win64 developer version installed. I followed your instructions and I have the python script error window. It does work flawlessly in a stand allones installation of dufour 32 bits. Thanks for the great work!

  3. Martin, I finally did get this to run on my Win7 64-bit machine but only after discovering that the requirement “such that there is no space in the path (e.g. bad: “C:\Program Files\lastools”, good: “D:\software\lastools”)” applies apparently to everything and every place; i.e., not just the placement of the tools; e.g.: good: “C:\qgis_related\data\19_05624899_q.las”, bad: “C:\MCC-LIDAR experiments\19_05624899 test 09.las”

    […]

    Kelly
    Professional Land Surveyor
    Horizon Surveying Co., Inc.
    Ellsworth, ME 04605

    • Kelly, indeed. This is the first version of the LAStools toolbox for QGIS and there are still a few imperfections. I need to revisit all Python scripts again and add quotes around all the file names so that spaces in directory or file names become possible. Right now I am doing the same for the ArcGIS toolbox … please be patient. (-:

  4. Win 7 64bit, still no luck. I printed out your directions, entered (C:\software\lastools) in the Processing Options, checked the “x” in the Activate box. But no tools show up.

    • The instructions have been confirmed to work with both the 32bit and the 64bit release version of QGIS 2.0.1. You seem not to follow them correctly. Note that the sripts do not work with the latest developer version due to a tiny incompatible change in the base script. But I assume 99% of you work with the release version and those that have the developer version can probably fix the script themselves … (-:

  5. Dear Martin
    I Installed QGIS dufour -win32-and lastools, following the intructions above. I get to see the lastools in the qgis toolbox, also the GUI pops up when I run e.g. lasview . It also runs ok, but produces not results. I took a look a the log file in QGIS a got the following message “processing.runalg(“lidartools:lasview”,True,”D:/tyrifjorden/las_data/BNO090050_LIER2009_LASER_32-2-509-134-21.las”)” . So, there is no indication that the algorithm failed.
    Afterwards, I tried to execute the same tool “lasview” as a batch process and got the following message: “batch processing successfully completed”, but still nothing showed up in the QGIS canvas. I also tried lasinfo algorithm but, got the same response. Afterwards, I went into the c://temp (local) to see if the data was there. Nothing was produced. Any hint?
    Thanks in advance
    best regards
    Rengifo

    • Not all tools will produce output to the QGIS canvas. Only tools producing rasters (e.g. las2dem, lasgrid, ..) or those producing polygons (e.g. lasboundary, las2iso, …). Most certainly lasview will not ever produce any output. It is just meant for viewing a LAS file interactively.

  6. Dear Martin,
    thanks for your quick reply . I am not still able to use lastools. I run las2iso and las2dem and i both cases I got the following messages
    Oooops! The following output layers could not be open
    Output vector file: C:\Temp\processing\8f49ec6b8ef24f0abc32dd25abab9c62\OUTPUT_VECTOR.shp
    The above files could not be opened, which probably indicates that they were not correctly produced by the executed algorithm
    Checking the log information might help you see why those layers were not created as expected. Any hint ?
    thanks in advance
    Rengifo

    • Usually the problem has to do with the fact that you installed LAStools with the wrong path. You are not allowed to have a space anywhere in the directory path. While this is good “C:\software\lastools”, this will not work: “C:\Program Files\lastools” …

      • I had it in mind when I installed LAStools. That’s not the problem. Everything opens fine. but when I tried to execute something, nothing happens or appears a message like “Oooops! The following output layers could not be open” 😉

  7. Rengifo & Vitor Jorge, I’m having the exact same problem! I have more than triple checked to be sure there are no spaces in any paths (for the lastools, for input, for output, etc.) and although everything appears to run correctly with no errors, there appear to be no results. I understand that the output from lasground will not be drawn to the QGIS canvas, but I do expect the output *.las file to be written in the folder I specified! I was sure to check “Save to File” (instead of “Save to Temporary File”), but after the tools runs, my output is not there for me to continue working. Any help would be appreciated, thanks!

    • Dear Martin,
      I remark that there are differences between options of lastools in ArcGis and QGIS. By exemple, in ArcGis when we use lasview , we have to specify the number of points that the input will be sampled down to (sample points =2000000 by default). But in QGIS we do not have this possibility. So I Would like to know whether all the points are effectively viewed in the screen in QGIS.
      Thank you
      Anned-Linz SENADIN

    • I am having the same problem Emma, Renfigor, & Vitor! Here is my error message:

      “Oooops! The following output layers could not be open
      Output raster file: G:/Users/Holly/Oaktree/jjj.tif
      The above files could not be opened, which probably indicates that they were not correctly produced by the executed algorithm
      Checking the log information might help you see why those layers were not created as expected”

      Then the log is blank

  8. Hi, I get the error message:
    “C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing\gui\AlgorithmExecutionDialog.py”, line 200, in accept self.setParamValues()
    when I try to install LAStools. All applications in LAStools gives the same error message. Any suggestion of how I can solve the problem? Thanks.

  9. from processing.core.ProcessingUtils import ProcessingUtils
    File “C:/GIS/Apps/OSGEO4~1/apps/qgis/./python\qgis\utils.py”, line 453, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
    ImportError: No module named ProcessingUtils

    That’s the error when installing the latest plugin into QGIS 2.0.1 from the 64bit OSGeo4W installer on Windows 8.1. Replaced “lidar” folders in both C:\OSGeo4W64\Apps\QGIS and C:\Users\username\.qgis2 locations. Luckily I saved the old lidar folders and restored them and it starts up fine now.

  10. Hello,
    First of all: Many thanks for doing this!!!
    Now my input: I also had the problem that I installed everything according to plan but the LAS tools did not seem to run. I had: C:\software\
    I needed C:\software\lastools\
    I also needed to put in the same folder at “fusion folder” so I could use the viewer.

    This may be exceptinally stupid to forget I kept the tools within that folder and only to put in the root folder for this but maybe someone will find this helpful.
    If I started the tools manually they did run. If I used the plugin, the window disappeared far to fast. That’s how I guessed the tools might not run.
    Suggestion: Could the plugin nag a little if it does not fint the tools at all? Just for fools like me.
    Cheers Lars

    • 2.2 has the tool box in the advanced QGIS interface. You still need to activate it as described above. However, I cannot get it to work. It gives me this: ” Missing dependency.This algorithm cannot be run 😦
      LAStools folder is not configured. Please configure it before running LAStools algorithms.”

    • Hi guys 🙂
      The same problem as you with Valmiera ;/ and I have managed all the databases, server etc. on this version so I wont go back with previous ones. I would rather wait a little 🙂

      • This is great, the tools that are available are now working on OSX. I can see and run las2las_filter, las2las_transform, las2txt, lasindex, lasinfo, lasmerge, lasprecision,lasvalidate,laszip, and txt2las. Is it possible to get lasviewer working on OSX, or any of the other processing tools available to windows users? I see the wine workaround mentioned above, but I am an amateur and have not used that program before.

  11. I’m having the issue in Windows. Replaced the lidar folder as in the configuration instructions. The tools all appear, including las2tin, they just all display the same message.

  12. The ‘*.exe’ files are in the ‘lastools\bin’ folder. But – like shown in step 10 above – as the ‘LAStools folder’ you should specify the location of ‘c:\software\lidar\lastools’ or ‘d:\superfast\lastools’ or whereever else you unzipped the ‘lastools’ folder from the ‘lastools.zip’ distribution.

    • Using Windows 64-bit and Valmiera: I found that although I could overwrite the path settings in the Options and Configuration dialog those settings would not stick. They kept reverting to the original settings. I solved by manually editing both processing.conf and processing_qgis.conf found in the folder C:\Users\%USERINAME%\.qgis2\processing .

      I don’t recall having this problem with Dufour.

      • I found that the problem can also be solved by changing the direction of the “/” in the path. The path must be “C:/QGIS Valmiera/apps\lastools”. That was what solved it for me =)

  13. There has been a big update to the LAStools toolboxes for QGIS 2.2 Valmiera. You will find LAStools Pipelines (for more complex workflows combining multiple tools) and the beginning of LAStools Production (for operating on entire folders of files instead of one file at a time). Pay attention to the comments by I. Reid as you may need to use the work-around he suggests for a successful installation …

  14. Pingback: First ever LiDAR Processing Model in QGIS | rapidlasso GmbH

  15. I downloaded the LAStools and installed them. The Tools for LiDAR data opens, but like some of the previous comments I am also having trouble making the tools work. Has a fix for this been established?

  16. Hi folks, I”m trying to do this with the latest version of QGIS (2.4 Ghugiak) on OS X Mavericks (10.9.4). I’ve followed the directions above, but the system will not link the path to the directory with the activated toolbox in QGIS. Anyone have any hints?

  17. Note that I have added new instructions for QGIS 2.4.0-Chugiak: “For version 2.2.0-Valmiera and older follow all the steps. Do not delete or copy any files for the newest version 2.4.0-Chugiak but skip directly to step 4 instead.”

  18. Note that in step 10 you must type or copy & paste the path to LAStools (as the browse popup is currently broken). You must press ENTER after typing the path to LAStools so the field is greyed out again before you click the OK button.

  19. Pingback: Instalacja toolboxa LAStools i FUSION w QGIS 2.2.0 | Geoinformatyka.com.pl

  20. Pingback: Using LAStools on Mac OS X with “Wine” | rapidlasso GmbH

  21. Who wants to beta test the all new and improved QGIS 2.4 toolbox (from the QGIS hackfest in Essen)? It can be downloaded from here:

    http://lastools.org/download/QGIS_2_4_toolbox.zip

    Simply rename the current ‘processing’ (sub-)folder of your QGIS install that is located here:

    C:\Program Files\QGIS Chugiak\apps\qgis\python\plugins\processing

    to something like this:

    C:\Program Files\QGIS Chugiak\apps\qgis\python\plugins\processing_orig

    and then put the contents of the QGIS_2_4_toolbox.zip ZIP archive (which contains a folder called ‘processing’) in its place that is a complete replacement for the current folder. These instructions replace steps 2 and 3 of those 14 steps listed in the blog article above.

    • I’ve followed the 10/16/2014 and 7/30/2014 instructions as best as I can, but still no dice. Must be some kind of file path error? Where do the LAStools files live in the ‘processing’ folder that’s inside ‘QGIS_2_4_toolbox.zip’? Thank you for your time.

  22. Thanks Martin for the new version for Chugiak, great job again!
    I’ve installed it on my Mac and I have now 22 tools available, still some (like lasground etc. are missing).
    Seems that wine will be the easier option on Mac, though I would have preferred to use it directly from within QGIS

  23. Hello,

    I am having a python error – “an error has occurred while executing Python code” when I try to save to file when running the lasground tool.

    I am running windows 7 on a 64 bit system with QGis 2.4. I followed the above instructions and not sure how to fix the python link.

    Does anyone know what is happening?

    Thanks

    John

  24. Holy crap, now that is stupidity in details. I got LAStools to work….I was using a file name with spaces…..now Martin dear, be a nice guy and put this in chocolate letters in the first line of this page……LAStools does not like spaces in filenames as well…..Kelly Bellis saved my day (eh, almost it’s now 8 minutes past 12)…….

    Greets, Ed.

  25. Hi Martin,
    I have already installed LAStools plugins in QGIS, but I have a little problem. When I try to use for example lasinfo, lasmerge I don’t get any results…:(. Have you got any idea what the problem is?

    • As part of each “Processing Toolbox” (that is how LAStools is part of QGIS, it is a toolbox not a plugin) there is a log that will inform you if and what went wrong. You should also see the actual LAStools command line that is being called by QGIS. Sometimes the output is simply in the wrong folder …

  26. Hi Martin,
    Thnx for making such a nice addition to QGIS.
    But unfortunately I’ve got a little problem with LAStools.
    It seems that I haven’t got a ‘output’ location like in the screenshots.

    I’m trying to convert a .laz file, but can’t select the output location.
    I’ve already tried to find a sollution, but can’t seems to discover what i’ve done wrong.

    Hoping you can help.

    With kind regards

  27. Pingback: Problem operating LAStools in QGIS 2.6.1 | Question and Answer

  28. A solution to the “global name ‘os’ is not defined” problem with QGIS 2.6.1 was posted in the LAStools user forum by Tomáš Svárovský. I summarize:

    Although the LAStools toolbox is already installed in 2.6.1, download newest version from this address: http:\\lastools.org\download\LAStools.zip. Extract and copy the folder “LAStools” somewhere. The path to this folder must not contain spaces (e.g. “C:\q gis\LAStools” is wrong but “C:\q_gis\LAStools” is ok.

    Then uncompress the file “QGIS_2_4_toolbox.zip” from the folder “LAStools\QGIS_toolbox”. The name of the extracted folder will be “processing”. Use it to replace the original “processing” folder of QGIS 2.6.1 that you will find at the corresponsing location in your QGIS installation to this one here: C:\QGIS_Brighton\apps\qgis\python\plugins\processing

    Finally set the path to tell QGIS where to find LAStools under QGIS>processing>Option and Configuration>Tools for LiDAR data>LAStools folder to where your copied your LAStools folder to (e.g. “C:\q_gis\LAStools”).

  29. I have Quantum GIS Lisboa 1.8.0 and I don’t have the “processing toolbox”. I cant do anything you say because i cant even rename a folder that doesn’t exist. I cant instal a newer version, só what can I do?

  30. Hi Martin,

    It is impossible to me to execute a tool from LAStools, in every time, the same error message appears:

    ‘ Ascii ‘ codec can’ t encodes to character u ‘\xe9 \xe9 ‘ in position 62: ordinal not in tidy up (128) See log for more details

    I am running windows 8.1 on a 64 bit system with QGis 2.4.

    Can you help me?

    Thanks

    Jeff

  31. Hello,
    I wonder if I can execute lastools from the command line on a DOS terminal. I edited the enviroment variables to do that, but I don’t get it. Is there any way?
    Regards
    Eugenia

  32. Hi!

    Easy tutorial, thank you. For me (QGIS 2.8 Wien) I had to change the output folder of the laz file to something else than the input folder of the fuza.laz file. The screenshot could perhaps be changed so that the input/output are different.

  33. Pingback: Missing dependency for Lastools in QGIS 2.8.5 Wein | Question and Answer

  34. Hi, I am 95% of the way, I can see the tools etc but when I run lasground I am getting an error. I am using QGIS 2.14.9.
    I can see the LAStools, but when I try to save a file with lasground, I see the following error, “LAStools command line
    C:\lidar\bin\lasground -i C:/Users/James Wallace/Desktop/LIDAR/Nashville/AY15.las -o C:/Users/James Wallace/Desktop/Here/ok.laz
    LAStools console output. The system cannot find the path specified”. Thanks, James

    • Looks to me that you have set the wrong path to LAStools. Usually that should look something like C:\LAStools or E:\Software\LAStools or C:\LiDAR\LAStools but you seem to have set it to C:\lidar instead.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s