-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved nviz link added 2 more algs to lastools git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@153 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
- Loading branch information
volayaf
committed
Apr 25, 2012
1 parent
933eb9b
commit 5f89f23
Showing
16 changed files
with
105 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import os | ||
from sextante.lastools.LasToolsUtils import LasToolsUtils | ||
from sextante.lastools.LasToolsAlgorithm import LasToolsAlgorithm | ||
from sextante.parameters.ParameterFile import ParameterFile | ||
from sextante.outputs.OutputFile import OutputFile | ||
|
||
class lasclassify(LasToolsAlgorithm): | ||
|
||
INPUT = "INPUT" | ||
OUTPUT = "OUTPUT" | ||
|
||
def defineCharacteristics(self): | ||
self.name = "lasclassify" | ||
self.group = "Tools" | ||
self.addParameter(ParameterFile(lasclassify.INPUT, "Input las layer")) | ||
self.addOutput(OutputFile(lasclassify.OUTPUT, "Output classified las file")) | ||
self.addCommonParameters() | ||
|
||
def processAlgorithm(self, progress): | ||
commands = [os.path.join(LasToolsUtils.LasToolsPath(), "bin", "lasclassify.exe")] | ||
commands.append("-i") | ||
commands.append(self.getParameterValue(lasclassify.INPUT)) | ||
commands.append("-o") | ||
commands.append(self.getOutputValue(lasclassify.OUTPUT)) | ||
self.addCommonParameterValuesToCommand(commands) | ||
|
||
LasToolsUtils.runLasTools(commands, progress) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import os | ||
from sextante.lastools.LasToolsUtils import LasToolsUtils | ||
from sextante.lastools.LasToolsAlgorithm import LasToolsAlgorithm | ||
from sextante.parameters.ParameterFile import ParameterFile | ||
from sextante.outputs.OutputFile import OutputFile | ||
from sextante.parameters.ParameterVector import ParameterVector | ||
|
||
class lasclip(LasToolsAlgorithm): | ||
|
||
INPUT = "INPUT" | ||
OUTPUT = "OUTPUT" | ||
POLYGON = "POLYGON" | ||
|
||
def defineCharacteristics(self): | ||
self.name = "lasclip" | ||
self.group = "Tools" | ||
self.addParameter(ParameterFile(lasclip.INPUT, "Input las layer")) | ||
self.addParameter(ParameterVector(lasclip.POLYGON, "Input polygons", ParameterVector.VECTOR_TYPE_POLYGON)) | ||
self.addOutput(OutputFile(lasclip.OUTPUT, "Output classified las file")) | ||
self.addCommonParameters() | ||
|
||
def processAlgorithm(self, progress): | ||
commands = [os.path.join(LasToolsUtils.LasToolsPath(), "bin", "lasclip.exe")] | ||
commands.append("-i") | ||
commands.append(self.getParameterValue(lasclip.INPUT)) | ||
commands.append("-poly") | ||
commands.append(self.getParameterValue(lasclip.POLYGON)) | ||
commands.append("-o") | ||
commands.append(self.getOutputValue(lasclip.OUTPUT)) | ||
self.addCommonParameterValuesToCommand(commands) | ||
|
||
LasToolsUtils.runLasTools(commands, progress) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters