Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jun 2, 2016
1 parent 568ddb3 commit b312235
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 20 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/algs/lidar/lastools/lascontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/lidar/lastools/lasdiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
10 changes: 5 additions & 5 deletions python/plugins/processing/algs/lidar/lastools/lasground_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterSelection


class lasheightPro_classify(LAStoolsAlgorithm):

REPLACE_Z = "REPLACE_Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterSelection


class lasheight_classify(LAStoolsAlgorithm):

REPLACE_Z = "REPLACE_Z"
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/lidar/lastools/laspublish.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from processing.core.parameters import ParameterString
from processing.core.parameters import ParameterFile


class laspublish(LAStoolsAlgorithm):

MODE = "MODE"
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from processing.core.parameters import ParameterString
from processing.core.parameters import ParameterFile


class laspublishPro(LAStoolsAlgorithm):

MODE = "MODE"
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/lidar/lastools/lasthin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
5 changes: 3 additions & 2 deletions python/plugins/processing/algs/lidar/lastools/lastile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from processing.core.parameters import ParameterBoolean
from processing.core.parameters import ParameterNumber


class lastile(LAStoolsAlgorithm):

TILE_SIZE = "TILE_SIZE"
Expand All @@ -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()

Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/lidar/lastools/lastilePro.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterString


class lastilePro(LAStoolsAlgorithm):

TILE_SIZE = "TILE_SIZE"
Expand All @@ -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()
Expand Down

0 comments on commit b312235

Please sign in to comment.