当前位置: 首页>>代码示例>>Python>>正文


Python LAStoolsUtils.runLAStools方法代码示例

本文整理汇总了Python中processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils.runLAStools方法的典型用法代码示例。如果您正苦于以下问题:Python LAStoolsUtils.runLAStools方法的具体用法?Python LAStoolsUtils.runLAStools怎么用?Python LAStoolsUtils.runLAStools使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils的用法示例。


在下文中一共展示了LAStoolsUtils.runLAStools方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin',
                    'lasmerge.exe')]
        self.addParametersVerboseCommands(commands)
        self.addParametersFilesAreFlightlinesCommands(commands)
        self.addParametersPointInputCommands(commands)
        file2 = self.getParameterValue(lasmerge.FILE2)
        if file2 is not None:
            commands.append('-i')
            commands.append(file2)
        file3 = self.getParameterValue(lasmerge.FILE3)
        if file3 is not None:
            commands.append('-i')
            commands.append(file3)
        file4 = self.getParameterValue(lasmerge.FILE4)
        if file4 is not None:
            commands.append('-i')
            commands.append(file4)
        file5 = self.getParameterValue(lasmerge.FILE5)
        if file5 is not None:
            commands.append('-i')
            commands.append(file5)
        file6 = self.getParameterValue(lasmerge.FILE6)
        if file6 is not None:
            commands.append('-i')
            commands.append(file6)
        file7 = self.getParameterValue(lasmerge.FILE7)
        if file7 is not None:
            commands.append('-i')
            commands.append(file7)
        self.addParametersPointOutputCommands(commands)

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:AnAvidDeveloper,项目名称:QGIS,代码行数:35,代码来源:lasmerge.py

示例2: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasmerge.exe")]
        self.addParametersVerboseCommands(commands)
        self.addParametersFilesAreFlightlinesCommands(commands)
        self.addParametersPointInputCommands(commands)
        file2 = self.getParameterValue(lasmerge.FILE2)
        if file2 != None:
            commands.append("-i")
            commands.append(file2)
        file3 = self.getParameterValue(lasmerge.FILE3)
        if file3 != None:
            commands.append("-i")
            commands.append(file3)
        file4 = self.getParameterValue(lasmerge.FILE4)
        if file4 != None:
            commands.append("-i")
            commands.append(file4)
        file5 = self.getParameterValue(lasmerge.FILE5)
        if file5 != None:
            commands.append("-i")
            commands.append(file5)
        file6 = self.getParameterValue(lasmerge.FILE6)
        if file6 != None:
            commands.append("-i")
            commands.append(file6)
        file7 = self.getParameterValue(lasmerge.FILE7)
        if file7 != None:
            commands.append("-i")
            commands.append(file7)
        self.addParametersPointOutputCommands(commands)
 
        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:dichapabe,项目名称:QGIS,代码行数:34,代码来源:lasmerge.py

示例3: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin',
                    'lasview.exe')]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:AnAvidDeveloper,项目名称:QGIS,代码行数:9,代码来源:lasview.py

示例4: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lascanopy.exe")]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        self.addParametersStepCommands(commands)
        product = self.getParameterValue(lascanopy.PRODUCT1)
        if product != 0:
            commands.append("-" + lascanopy.PRODUCTS[product])
        product = self.getParameterValue(lascanopy.PRODUCT2)
        if product != 0:
            commands.append("-" + lascanopy.PRODUCTS[product])
        product = self.getParameterValue(lascanopy.PRODUCT3)
        if product != 0:
            commands.append("-" + lascanopy.PRODUCTS[product])
        product = self.getParameterValue(lascanopy.PRODUCT4)
        if product != 0:
            commands.append("-" + lascanopy.PRODUCTS[product])
        product = self.getParameterValue(lascanopy.PRODUCT5)
        if product != 0:
            commands.append("-" + lascanopy.PRODUCTS[product])
        product = self.getParameterValue(lascanopy.PRODUCT6)
        if product != 0:
            commands.append("-" + lascanopy.PRODUCTS[product])
        product = self.getParameterValue(lascanopy.PRODUCT7)
        if product != 0:
            commands.append("-" + lascanopy.PRODUCTS[product])
        product = self.getParameterValue(lascanopy.PRODUCT8)
        if product != 0:
            commands.append("-" + lascanopy.PRODUCTS[product])
        product = self.getParameterValue(lascanopy.PRODUCT9)
        if product != 0:
            commands.append("-" + lascanopy.PRODUCTS[product])
        self.addParametersRasterOutputCommands(commands)

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:dichapabe,项目名称:QGIS,代码行数:37,代码来源:lascanopy.py

示例5: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin',
                    'blast2iso.exe')]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        smooth = self.getParameterValue(blast2iso.SMOOTH)
        if smooth != 0:
            commands.append('-smooth')
            commands.append(str(smooth))
        commands.append('-iso_every')
        commands.append(str(self.getParameterValue(blast2iso.ISO_EVERY)))
        simplify_length = self.getParameterValue(blast2iso.SIMPLIFY_LENGTH)
        if simplify_length != 0:
            commands.append('-simplify_length')
            commands.append(str(simplify_length))
        simplify_area = self.getParameterValue(blast2iso.SIMPLIFY_AREA)
        if simplify_area != 0:
            commands.append('-simplify_area')
            commands.append(str(simplify_area))
        clean = self.getParameterValue(blast2iso.CLEAN)
        if clean != 0:
            commands.append('-clean')
            commands.append(str(clean))
        self.addParametersVectorOutputCommands(commands)

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:AnAvidDeveloper,项目名称:QGIS,代码行数:28,代码来源:blast2iso.py

示例6: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasinfo.exe")]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        commands.append("-o")
        commands.append(self.getOutputValue(lasinfo.OUTPUT))

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:dichapabe,项目名称:QGIS,代码行数:10,代码来源:lasinfo.py

示例7: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasclassify.exe")]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        self.addParametersHorizontalAndVerticalFeetCommands(commands)        
        self.addParametersPointOutputCommands(commands)

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:dichapabe,项目名称:QGIS,代码行数:10,代码来源:lasclassify.py

示例8: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "laszip.exe")]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        if self.getParameterValue(laszip.REPORT_SIZE):
            commands.append("-size")
        self.addParametersPointOutputCommands(commands)

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:dichapabe,项目名称:QGIS,代码行数:11,代码来源:laszip.py

示例9: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin',
                    'lasprecision.exe')]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        commands.append('-o')
        commands.append(self.getOutputValue(lasprecision.OUTPUT))

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:AnAvidDeveloper,项目名称:QGIS,代码行数:11,代码来源:lasprecision.py

示例10: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lassplit.exe")]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        commands.append("-split")
        commands.append(self.getParameterValue(lassplit.NUM_POINTS))
        self.addParametersPointOutputCommands(commands)

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:dichapabe,项目名称:QGIS,代码行数:11,代码来源:lassplit.py

示例11: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasheight.exe")]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        replace_z = self.getParameterValue(lasheight.REPLACE_Z)
        if replace_z == True:
            commands.append("-replace_z")
        self.addParametersPointOutputCommands(commands)

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:dichapabe,项目名称:QGIS,代码行数:12,代码来源:lasheight.py

示例12: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasindex.exe")]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        if self.getParameterValue(lasindex.MOBILE_OR_TERRESTRIAL):
            commands.append("-tile_size")
            commands.append("10")
            commands.append("-maximum")
            commands.append("-100")

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:dichapabe,项目名称:QGIS,代码行数:13,代码来源:lasindex.py

示例13: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lassort.exe")]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        if self.getParameterValue(lassort.BY_GPS_TIME):
            commands.append("-gps_time")
        if self.getParameterValue(lassort.BY_POINT_SOURCE_ID):
            commands.append("-point_source")
        self.addParametersPointOutputCommands(commands)

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:dichapabe,项目名称:QGIS,代码行数:13,代码来源:lassort.py

示例14: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin',
                    'lasindex.exe')]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        if self.getParameterValue(lasindex.MOBILE_OR_TERRESTRIAL):
            commands.append('-tile_size')
            commands.append('10')
            commands.append('-maximum')
            commands.append('-100')

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:AnAvidDeveloper,项目名称:QGIS,代码行数:14,代码来源:lasindex.py

示例15: processAlgorithm

# 需要导入模块: from processing.lidar.lastools.LAStoolsUtils import LAStoolsUtils [as 别名]
# 或者: from processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils import runLAStools [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2txt.exe")]
        self.addParametersVerboseCommands(commands)
        self.addParametersPointInputCommands(commands)
        parse_string = self.getParameterValue(las2txt.PARSE_STRING)
        if parse_string != "xyz":
            commands.append("-parse_string")
            commands.append(parse_string)
        commands.append("-o")
        commands.append(self.getOutputValue(las2txt.OUTPUT))

        LAStoolsUtils.runLAStools(commands, progress)
开发者ID:adwiputra,项目名称:LUMENS-repo,代码行数:14,代码来源:las2txt.py


注:本文中的processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils.runLAStools方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。