Skip to content


[processing] major overhaul of lastools algorithms
Browse files Browse the repository at this point in the history
Code contributed by Martin Isenburg
  • Loading branch information
volaya committed May 21, 2014
1 parent dd47b61 commit b1103c0
Show file tree
Hide file tree
Showing 53 changed files with 2,230 additions and 1,029 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
Date : September 2013
Copyright : (C) 2013 by Martin Isenburg
Date : April 2014
Copyright : (C) 2014 by Martin Isenburg
Email : martin near rapidlasso point com
* *
Expand Down Expand Up @@ -43,6 +43,8 @@
from lastools.laszip import laszip
from lastools.lasindex import lasindex
from lastools.lasclip import lasclip
from lastools.lasquery import lasquery
from lastools.lascolor import lascolor
from lastools.lasthin import lasthin
from lastools.lasnoise import lasnoise
from lastools.lassort import lassort
Expand All @@ -54,7 +56,9 @@
from lastools.las2dem import las2dem
from lastools.blast2dem import blast2dem
from lastools.las2iso import las2iso
from lastools.las2tin import las2tin
from lastools.las2las_filter import las2las_filter
from lastools.las2las_project import las2las_project
from lastools.las2las_transform import las2las_transform
from lastools.blast2iso import blast2iso
from lastools.lasprecision import lasprecision
Expand All @@ -69,6 +73,18 @@
from lastools.lascanopy import lascanopy
from lastools.lasoverage import lasoverage
from lastools.lasoverlap import lasoverlap

from lastools.lastilePro import lastilePro
from lastools.lasgroundPro import lasgroundPro
from lastools.las2demPro import las2demPro

from lastools.flightlinesToDTMandDSM import flightlinesToDTMandDSM
from lastools.flightlinesToCHM import flightlinesToCHM
from lastools.flightlinesToSingleCHMpitFree import flightlinesToSingleCHMpitFree
from lastools.hugeFileClassify import hugeFileClassify
from lastools.hugeFileGroundClassify import hugeFileGroundClassify
from lastools.hugeFileNormalize import hugeFileNormalize

from fusion.OpenViewerAction import OpenViewerAction
from fusion.CanopyMaxima import CanopyMaxima
from fusion.CanopyModel import CanopyModel
Expand All @@ -89,26 +105,58 @@ def __init__(self):
self.activate = False
self.algsList = []

# LAStools for processing single files

if isWindows():
lastools = [
lasground(), lasheight(), lasclassify(), lasclip(), lastile(),
lasgrid(), las2dem(), blast2dem(), las2iso(), blast2iso(),
lasview(), lasboundary(), lasinfo(), lasprecision(),
lascolor(), lasgrid(), las2dem(), blast2dem(), las2iso(), blast2iso(),
lasview(), lasboundary(), lasinfo(), lasprecision(), las2tin(),
lasvalidate(), lasduplicate(), las2txt(), txt2las(), laszip(),
lasindex(), lasthin(), lassort(), lascanopy(), lasmerge(),
las2shp(), shp2las(), lasnoise(), lassplit(), las2las_filter(),
las2las_transform(), lasoverage(), lasoverlap()
las2las_project(), las2las_transform(), lasoverage(), lasoverlap(),
lastools = [
lasinfo(), lasprecision(), lasvalidate(), las2txt(), txt2las(),
laszip(), lasindex(), lasmerge(), las2las_filter(),
laszip(), lasindex(), lasmerge(), las2las_filter(), las2las_project(),
las2las_transform(), lasquery()
for alg in lastools: = 'LAStools'

# LAStools Production for processing folders of files

if isWindows():
lastoolsPro = [
lastilePro(), lasgroundPro(), las2demPro()
lastoolsPro = [
for alg in lastoolsPro: = 'LAStools Production'

# some examples for LAStools Pipelines

if isWindows():
lastoolsPipe = [
flightlinesToDTMandDSM(), flightlinesToCHM(), flightlinesToSingleCHMpitFree(), hugeFileClassify(), hugeFileGroundClassify(), hugeFileNormalize()
lastoolsPipe = [
for alg in lastoolsPipe: = 'LAStools Pipelines'


if isWindows():
fusiontools = [
Expand All @@ -128,6 +176,9 @@ def initializeSettings(self):
'Fusion folder', FusionUtils.FusionPath()))
'Wine folder', ''))

def getName(self):
return 'lidartools'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class FusionAlgorithm(GeoAlgorithm):

def getIcon(self):
filepath = os.path.dirname(__file__) + '/../../images/tool.png'
filepath = os.path.dirname(__file__) + '/../../../images/tool.png'
return QtGui.QIcon(filepath)

def checkBeforeOpeningParametersDialog(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self): = 'Visualization'

def getIcon(self):
return QtGui.QIcon(os.path.dirname(__file__) + '/../images/tool.png')
return QtGui.QIcon(os.path.dirname(__file__) + '/../../../images/tool.png')

def execute(self):
f = os.path.join(FusionUtils.FusionPath(), 'pdq.exe')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

PLUGIN_INSTALL(processing ./algs/lidar/lastools ${PY_FILES})
PLUGIN_INSTALL(processing ./lidar/lastools ${PY_FILES})

0 comments on commit b1103c0

Please sign in to comment.