當前位置: 首頁>>代碼示例>>Python>>正文


Python LAStoolsUtils.LAStoolsUtils類代碼示例

本文整理匯總了Python中processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils的典型用法代碼示例。如果您正苦於以下問題:Python LAStoolsUtils類的具體用法?Python LAStoolsUtils怎麽用?Python LAStoolsUtils使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了LAStoolsUtils類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: processAlgorithm

    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,代碼行數:33,代碼來源:lasmerge.py

示例2: processAlgorithm

    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,代碼行數:32,代碼來源:lasmerge.py

示例3: processAlgorithm

    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,代碼行數:7,代碼來源:lasview.py

示例4: processAlgorithm

    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,代碼行數:35,代碼來源:lascanopy.py

示例5: processAlgorithm

    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,代碼行數:26,代碼來源:blast2iso.py

示例6: processAlgorithm

    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,代碼行數:8,代碼來源:lasinfo.py

示例7: processAlgorithm

    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,代碼行數:8,代碼來源:lasclassify.py

示例8: processAlgorithm

    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,代碼行數:9,代碼來源:laszip.py

示例9: processAlgorithm

    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,代碼行數:9,代碼來源:lasprecision.py

示例10: processAlgorithm

    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,代碼行數:9,代碼來源:lassplit.py

示例11: processAlgorithm

    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,代碼行數:10,代碼來源:lasheight.py

示例12: processAlgorithm

    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,代碼行數:11,代碼來源:lasindex.py

示例13: processAlgorithm

    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,代碼行數:11,代碼來源:lassort.py

示例14: processAlgorithm

    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,代碼行數:12,代碼來源:lasindex.py

示例15: processAlgorithm

    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,代碼行數:12,代碼來源:las2txt.py


注:本文中的processing.lidar.lastools.LAStoolsUtils.LAStoolsUtils類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。