Skip to content
Permalink
Browse files

fix indentation

  • Loading branch information
alexbruy committed Jun 2, 2016
1 parent 568ddb3 commit b312235b5fb2d9f989875907a7de2bc16b6fcc41
@@ -32,6 +32,7 @@
from processing.core.parameters import ParameterBoolean
from processing.core.parameters import ParameterSelection


class lascontrol(LAStoolsAlgorithm):

CONTROL_POINT_FILE = "CONTROL_POINT_FILE"
@@ -46,9 +47,9 @@ def defineCharacteristics(self):
self.addParametersVerboseGUI()
self.addParametersPointInputGUI()
self.addParameter(ParameterFile(lascontrol.CONTROL_POINT_FILE,
self.tr("ASCII text file of control points"), False, False))
self.tr("ASCII text file of control points"), False, False))
self.addParameter(ParameterString(lascontrol.PARSE_STRING,
self.tr("parse string marking which columns are xyz (use 's' for skip)"), "sxyz", False, False))
self.tr("parse string marking which columns are xyz (use 's' for skip)"), "sxyz", False, False))
self.addParameter(ParameterSelection(lascontrol.USE_POINTS,
self.tr("which points to use for elevation checks"), lascontrol.USE_POINTS_LIST, 0))
self.addParameter(ParameterBoolean(lascontrol.ADJUST_Z,
@@ -31,6 +31,7 @@
from processing.core.parameters import ParameterBoolean
from processing.core.parameters import ParameterSelection


class lasdiff(LAStoolsAlgorithm):

OTHER_POINT_FILE = "OTHER_POINT_FILE"
@@ -44,7 +45,7 @@ def defineCharacteristics(self):
self.addParametersVerboseGUI()
self.addParametersPointInputGUI()
self.addParameter(ParameterFile(lasdiff.OTHER_POINT_FILE,
self.tr("other input LAS/LAZ file"), False, False))
self.tr("other input LAS/LAZ file"), False, False))
self.addParameter(ParameterSelection(lasdiff.SHUTUP,
self.tr("stop reporting difference after this many points"), lasdiff.SHUTUP_AFTER, 0))
self.addParameter(ParameterBoolean(lasdiff.CREATE_DIFFERENCE_FILE,
@@ -54,15 +54,15 @@ def defineCharacteristics(self):
self.addParameter(ParameterSelection(lasgroundPro_new.GRANULARITY,
self.tr("preprocessing"), lasgroundPro_new.GRANULARITIES, 1))
self.addParameter(ParameterNumber(lasgroundPro_new.STEP,
self.tr("step (for 'custom' terrain only)"), 25.0))
self.tr("step (for 'custom' terrain only)"), 25.0))
self.addParameter(ParameterNumber(lasgroundPro_new.BULGE,
self.tr("bulge (for 'custom' terrain only)"), 2.0))
self.tr("bulge (for 'custom' terrain only)"), 2.0))
self.addParameter(ParameterNumber(lasgroundPro_new.SPIKE,
self.tr("spike (for 'custom' terrain only)"), 1.0))
self.tr("spike (for 'custom' terrain only)"), 1.0))
self.addParameter(ParameterNumber(lasgroundPro_new.DOWN_SPIKE,
self.tr("down spike (for 'custom' terrain only)"), 1.0))
self.tr("down spike (for 'custom' terrain only)"), 1.0))
self.addParameter(ParameterNumber(lasgroundPro_new.OFFSET,
self.tr("offset (for 'custom' terrain only)"), 0.05))
self.tr("offset (for 'custom' terrain only)"), 0.05))
self.addParametersOutputDirectoryGUI()
self.addParametersOutputAppendixGUI()
self.addParametersPointOutputFormatGUI()
@@ -54,15 +54,15 @@ def defineCharacteristics(self):
self.addParameter(ParameterSelection(lasground_new.GRANULARITY,
self.tr("preprocessing"), lasground_new.GRANULARITIES, 1))
self.addParameter(ParameterNumber(lasground_new.STEP,
self.tr("step (for 'custom' terrain only)"), 25.0))
self.tr("step (for 'custom' terrain only)"), 25.0))
self.addParameter(ParameterNumber(lasground_new.BULGE,
self.tr("bulge (for 'custom' terrain only)"), 2.0))
self.tr("bulge (for 'custom' terrain only)"), 2.0))
self.addParameter(ParameterNumber(lasground_new.SPIKE,
self.tr("spike (for 'custom' terrain only)"), 1.0))
self.tr("spike (for 'custom' terrain only)"), 1.0))
self.addParameter(ParameterNumber(lasground_new.DOWN_SPIKE,
self.tr("down spike (for 'custom' terrain only)"), 1.0))
self.tr("down spike (for 'custom' terrain only)"), 1.0))
self.addParameter(ParameterNumber(lasground_new.OFFSET,
self.tr("offset (for 'custom' terrain only)"), 0.05))
self.tr("offset (for 'custom' terrain only)"), 0.05))
self.addParametersPointOutputGUI()
self.addParametersAdditionalGUI()

@@ -31,6 +31,7 @@
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterSelection


class lasheightPro_classify(LAStoolsAlgorithm):

REPLACE_Z = "REPLACE_Z"
@@ -31,6 +31,7 @@
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterSelection


class lasheight_classify(LAStoolsAlgorithm):

REPLACE_Z = "REPLACE_Z"
@@ -32,6 +32,7 @@
from processing.core.parameters import ParameterString
from processing.core.parameters import ParameterFile


class laspublish(LAStoolsAlgorithm):

MODE = "MODE"
@@ -69,7 +70,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterBoolean(laspublish.OVERWRITE_EXISTING,
self.tr("overwrite existing files"), True))
self.addParameter(ParameterString(laspublish.PORTAL_HTML_PAGE,
self.tr("portal HTML page"), "portal.html", False))
self.tr("portal HTML page"), "portal.html", False))
self.addParameter(ParameterString(laspublish.PORTAL_TITLE,
self.tr("portal title"), "My LiDAR Portal"))
self.addParameter(ParameterString(laspublish.PORTAL_DESCRIPTION,
@@ -32,6 +32,7 @@
from processing.core.parameters import ParameterString
from processing.core.parameters import ParameterFile


class laspublishPro(LAStoolsAlgorithm):

MODE = "MODE"
@@ -69,7 +70,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterBoolean(laspublishPro.OVERWRITE_EXISTING,
self.tr("overwrite existing files"), True))
self.addParameter(ParameterString(laspublishPro.PORTAL_HTML_PAGE,
self.tr("portal HTML page"), "portal.html", False))
self.tr("portal HTML page"), "portal.html", False))
self.addParameter(ParameterString(laspublishPro.PORTAL_TITLE,
self.tr("portal title"), "My LiDAR Portal"))
self.addParameter(ParameterString(laspublishPro.PORTAL_DESCRIPTION,
@@ -78,7 +78,7 @@ def processAlgorithm(self, progress):
if operation != 0:
commands.append("-" + self.OPERATIONS[operation])
if (operation >= 4):
commands.append(unicode(self.getParameterValue(lasthin.THRESHOLD_OR_INTERVAL)))
commands.append(unicode(self.getParameterValue(lasthin.THRESHOLD_OR_INTERVAL)))
if self.getParameterValue(lasthin.WITHHELD):
commands.append("-withheld")
if self.getParameterValue(lasthin.CLASSIFY_AS):
@@ -81,7 +81,7 @@ def processAlgorithm(self, progress):
if (operation != 0):
commands.append("-" + self.OPERATIONS[operation])
if (operation >= 4):
commands.append(unicode(self.getParameterValue(lasthinPro.THRESHOLD_OR_INTERVAL)))
commands.append(unicode(self.getParameterValue(lasthinPro.THRESHOLD_OR_INTERVAL)))
if self.getParameterValue(lasthinPro.WITHHELD):
commands.append("-withheld")
if self.getParameterValue(lasthinPro.CLASSIFY_AS):
@@ -30,6 +30,7 @@
from processing.core.parameters import ParameterBoolean
from processing.core.parameters import ParameterNumber


class lastile(LAStoolsAlgorithm):

TILE_SIZE = "TILE_SIZE"
@@ -49,9 +50,9 @@ def defineCharacteristics(self):
self.tr("buffer around each tile"),
0.0, None, 25.0))
self.addParameter(ParameterBoolean(lastile.FLAG_AS_WITHHELD,
self.tr("flag buffer points as 'withheld' for easier removal later"), True))
self.tr("flag buffer points as 'withheld' for easier removal later"), True))
self.addParameter(ParameterBoolean(lastile.REVERSIBLE,
self.tr("make tiling reversible (advanced, usually not needed)"), False))
self.tr("make tiling reversible (advanced, usually not needed)"), False))
self.addParametersPointOutputGUI()
self.addParametersAdditionalGUI()

@@ -31,6 +31,7 @@
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterString


class lastilePro(LAStoolsAlgorithm):

TILE_SIZE = "TILE_SIZE"
@@ -52,7 +53,7 @@ def defineCharacteristics(self):
self.tr("buffer around each tile (avoids edge artifacts)"),
0.0, None, 25.0))
self.addParameter(ParameterBoolean(lastilePro.FLAG_AS_WITHHELD,
self.tr("flag buffer points as 'withheld' for easier removal later"), True))
self.tr("flag buffer points as 'withheld' for easier removal later"), True))
self.addParameter(ParameterBoolean(lastilePro.EXTRA_PASS,
self.tr("more than 2000 tiles"), False))
self.addParametersOutputDirectoryGUI()

0 comments on commit b312235

Please sign in to comment.
You can’t perform that action at this time.