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


Python FusionUtils.tempFileListFilepath方法代码示例

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


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

示例1: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), 'Cover.exe')]
     commands.append('/verbose')
     self.addAdvancedModifiersToCommand(commands)
     ground = self.getParameterValue(self.GROUND)
     if str(ground).strip() != '':
         commands.append('/ground:' + str(ground))
     outFile = self.getOutputValue(self.OUTPUT) + '.dtm'
     commands.append(outFile)
     commands.append(str(self.getParameterValue(self.CELLSIZE)))
     commands.append(self.UNITS[self.getParameterValue(self.XYUNITS)][0])
     commands.append(self.UNITS[self.getParameterValue(self.ZUNITS)][0])
     commands.append('0')
     commands.append('0')
     commands.append('0')
     commands.append('0')
     files = self.getParameterValue(self.INPUT).split(';')
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())
     FusionUtils.runFusion(commands, progress)
     commands = [os.path.join(FusionUtils.FusionPath(), 'DTM2TIF.exe')]
     commands.append(outFile)
     commands.append(self.getOutputValue(self.OUTPUT))
     p = subprocess.Popen(commands, shell=True)
     p.wait()
开发者ID:Jokenbol,项目名称:QGIS,代码行数:30,代码来源:Cover.py

示例2: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), 'ClipData.exe')]
     commands.append('/verbose')
     self.addAdvancedModifiersToCommand(commands)
     commands.append('/shape:' + unicode(self.getParameterValue(self.SHAPE)))
     dtm = self.getParameterValue(self.DTM)
     if dtm:
         commands.append('/dtm:' + unicode(dtm))
     height = self.getParameterValue(self.HEIGHT)
     if height:
         commands.append('/height')
     files = self.getParameterValue(self.INPUT).split(';')
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())
     outFile = self.getOutputValue(self.OUTPUT)
     commands.append(outFile)
     extent = unicode(self.getParameterValue(self.EXTENT)).split(',')
     commands.append(extent[0])
     commands.append(extent[2])
     commands.append(extent[1])
     commands.append(extent[3])
     FusionUtils.runFusion(commands, progress)
开发者ID:Geoneer,项目名称:QGIS,代码行数:27,代码来源:ClipData.py

示例3: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), "Cover.exe")]
     commands.append("/verbose")
     self.addAdvancedModifiersToCommand(commands)
     ground = self.getParameterValue(self.GROUND)
     if unicode(ground).strip() != "":
         commands.append("/ground:" + unicode(ground))
     outFile = self.getOutputValue(self.OUTPUT) + ".dtm"
     commands.append(outFile)
     commands.append(unicode(self.getParameterValue(self.CELLSIZE)))
     commands.append(self.UNITS[self.getParameterValue(self.XYUNITS)][0])
     commands.append(self.UNITS[self.getParameterValue(self.ZUNITS)][0])
     commands.append("0")
     commands.append("0")
     commands.append("0")
     commands.append("0")
     files = self.getParameterValue(self.INPUT).split(";")
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())
     FusionUtils.runFusion(commands, progress)
     commands = [os.path.join(FusionUtils.FusionPath(), "DTM2TIF.exe")]
     commands.append(outFile)
     commands.append(self.getOutputValue(self.OUTPUT))
     p = subprocess.Popen(commands, shell=True)
     p.wait()
开发者ID:Geoneer,项目名称:QGIS,代码行数:30,代码来源:Cover.py

示例4: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), 'GridMetrics.exe')]
     commands.append('/verbose')
     outlier = self.getParameterValue(self.OUTLIER)
     if str(outlier).strip() != '':
         commands.append('/outlier:' + str(outlier))
     first = self.getParameterValue(self.FIRST)
     if first:
         commands.append('/first:' + str(first))
     minht = self.getParameterValue(self.MINHT)
     if str(minht).strip() != '':
         commands.append('/minht:' + str(minht))
     class_var = self.getParameterValue(self.CLASS)
     if str(class_var).strip() != '':
         commands.append('/class:' + str(class_var))
     commands.append(self.getParameterValue(self.GROUND))
     commands.append(str(self.getParameterValue(self.HEIGHT)))
     commands.append(str(self.getParameterValue(self.CELLSIZE)))
     commands.append(self.getOutputValue(self.OUTPUT_CSV_ELEVATION))
     files = self.getParameterValue(self.INPUT).split(';')
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())
     FusionUtils.runFusion(commands, progress)
     basePath = self.getOutputValue(self.OUTPUT_CSV_ELEVATION)
     basePath = os.path.join(os.path.dirname(basePath), os.path.splitext(os.path.basename(basePath))[0])
     self.setOutputValue(self.OUTPUT_CSV_ELEVATION, basePath + '_all_returns_elevation_stats.csv')
     self.setOutputValue(self.OUTPUT_CSV_INTENSITY, basePath + '_all_returns_intensity_stats.csv')
     self.setOutputValue(self.OUTPUT_TXT_ELEVATION, basePath + '_all_returns_elevation_stats_ascii_header.txt')
     self.setOutputValue(self.OUTPUT_TXT_INTENSITY, basePath + '_all_returns_intensity_stats_ascii_header.txt')
开发者ID:Sh4dd0w,项目名称:QGIS,代码行数:34,代码来源:GridMetrics.py

示例5: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), 'CSV2Grid.exe')]
     commands.append('/verbose')
     files = self.getParameterValue(self.INPUT).split(';')
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())
     commands.append(self.getParameterValue(self.COLUMN))
     commands.append(self.getOutputValue(self.OUTPUT))
     FusionUtils.runFusion(commands, progress)
开发者ID:Sh4dd0w,项目名称:QGIS,代码行数:14,代码来源:Csv2Grid.py

示例6: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), 'MergeData.exe')]
     commands.append('/verbose')
     self.addAdvancedModifiersToCommand(commands)
     files = self.getParameterValue(self.INPUT).split(';')
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())
     outFile = self.getOutputValue(self.OUTPUT)
     commands.append(outFile)
     FusionUtils.runFusion(commands, progress)
开发者ID:Aladar64,项目名称:QGIS,代码行数:15,代码来源:MergeData.py

示例7: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), 'DTM2ASCII.exe')]
     commands.append('/verbose')
     if self.getParameterValue(self.SWITCH) == 0:
         commands.append('/raster')
     else:
         commands.append('/csv')
     files = self.getParameterValue(self.INPUT).split(';')
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())
     FusionUtils.runFusion(commands, progress)
开发者ID:HeatherHillers,项目名称:QGIS,代码行数:16,代码来源:DTM2ASCII.py

示例8: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(FusionUtils.FusionPath(), 'GridMetrics.exe')]
        commands.append('/verbose')
        self.addAdvancedModifiersToCommand(commands)
        commands.append(self.getParameterValue(self.GROUND))
        commands.append(str(self.getParameterValue(self.HEIGHT)))
        commands.append(str(self.getParameterValue(self.CELLSIZE)))
        commands.append(self.getOutputValue(self.OUTPUT))
        files = self.getParameterValue(self.INPUT).split(';')
        if len(files) == 1:
            commands.append(self.getParameterValue(self.INPUT))
        else:
            FusionUtils.createFileList(files)
            commands.append(FusionUtils.tempFileListFilepath())

        FusionUtils.runFusion(commands, progress)
开发者ID:Jokenbol,项目名称:QGIS,代码行数:18,代码来源:GridMetrics.py

示例9: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(FusionUtils.FusionPath(), 'PolyClipData.exe')]
        commands.append('/verbose')
        if self.getParameterValue(self.SHAPE):
            commands.append('/shape:' + str(self.getParameterValue(self.FIELD)) + ',' + str(self.getParameterValue(self.VALUE)))
        self.addAdvancedModifiersToCommand(commands)
        commands.append(self.getParameterValue(self.MASK))
        outFile = self.getOutputValue(self.OUTPUT)
        commands.append(outFile)
        files = self.getParameterValue(self.INPUT).split(';')
        if len(files) == 1:
            commands.append(self.getParameterValue(self.INPUT))
        else:
            FusionUtils.createFileList(files)
            commands.append(FusionUtils.tempFileListFilepath())

        FusionUtils.runFusion(commands, progress)
开发者ID:Sh4dd0w,项目名称:QGIS,代码行数:19,代码来源:PolyClipData.py

示例10: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), 'GridSurfaceCreate.exe')]
     commands.append('/verbose')
     spike = self.getParameterValue(self.SPIKE)
     if str(spike).strip():
         commands.append('/spike:' + str(spike))
     median = self.getParameterValue(self.MEDIAN)
     if str(median).strip():
         commands.append('/median:' + str(median))
     smooth = self.getParameterValue(self.SMOOTH)
     if str(smooth).strip():
         commands.append('/smooth:' + str(smooth))
     slope = self.getParameterValue(self.SLOPE)
     if str(slope).strip():
         commands.append('/slope:' + str(slope))
     minimum = self.getParameterValue(self.MINIMUM)
     if str(minimum).strip():
         commands.append('/minimum:' + str(minimum))
     class_var = self.getParameterValue(self.CLASS)
     if str(class_var).strip():
         commands.append('/class:' + str(class_var))
     advance_modifiers = str(self.getParameterValue(self.ADVANCED_MODIFIERS)).strip()
     if advance_modifiers:
         commands.append(s)
     commands.append(self.getOutputValue(self.OUTPUT_DTM))
     commands.append(str(self.getParameterValue(self.CELLSIZE)))
     commands.append(self.UNITS[self.getParameterValue(self.XYUNITS)][0])
     commands.append(self.UNITS[self.getParameterValue(self.ZUNITS)][0])
     commands.append('0')
     commands.append('0')
     commands.append('0')
     commands.append('0')
     files = self.getParameterValue(self.INPUT).split(';')
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())        
     FusionUtils.runFusion(commands, progress)
     ascii = self.getParameterValue(self.ASCII)
     if ascii == 1:
         commands = [os.path.join(FusionUtils.FusionPath(), 'DTM2ASCII.exe')]
         commands.append(self.getOutputValue(self.OUTPUT_DTM))
         commands.append(self.getOutputValue(self.OUTPUT_ASCII))
         p = subprocess.Popen(commands, shell=True)
         p.wait()
开发者ID:mwa,项目名称:Quantum-GIS,代码行数:48,代码来源:GridSurfaceCreate.py

示例11: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), 'GroundFilter.exe')]
     commands.append('/verbose')
     self.addAdvancedModifiersToCommand(commands)
     surface = self.getParameterValue(self.SURFACE)
     if surface:
         commands.append('/surface')
     outFile = self.getOutputValue(self.OUTPUT)
     commands.append(outFile)
     commands.append(unicode(self.getParameterValue(self.CELLSIZE)))
     files = self.getParameterValue(self.INPUT).split(';')
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())
     FusionUtils.runFusion(commands, progress)
开发者ID:Geoneer,项目名称:QGIS,代码行数:19,代码来源:GroundFilter.py

示例12: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
    def processAlgorithm(self, progress):
        commands = [os.path.join(FusionUtils.FusionPath(), 'CanopyMaxima.exe')]
        commands.append('/verbose')
        self.addAdvancedModifiersToCommand(commands)
        ground = self.getParameterValue(self.GROUND)
        if str(ground).strip() != '':
            commands.append('/ground:' + str(ground))
        commands.append('/threshold:'
                        + str(self.getParameterValue(self.THRESHOLD)))
        files = self.getParameterValue(self.INPUT).split(';')
        if len(files) == 1:
            commands.append(self.getParameterValue(self.INPUT))
        else:
            FusionUtils.createFileList(files)
            commands.append(FusionUtils.tempFileListFilepath())
        commands.append(self.getOutputValue(self.OUTPUT))

        FusionUtils.runFusion(commands, progress)
开发者ID:Jokenbol,项目名称:QGIS,代码行数:20,代码来源:CanopyMaxima.py

示例13: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), 'ASCII2DTM.exe')]
     commands.append('/verbose')
     self.addAdvancedModifiersToCommand(commands)
     outFile = self.getOutputValue(self.OUTPUT)
     commands.append(outFile)
     commands.append(self.UNITS[self.getParameterValue(self.XYUNITS)][0])
     commands.append(self.UNITS[self.getParameterValue(self.ZUNITS)][0])
     commands.append(str(self.getParameterValue(self.COORDSYS)))
     commands.append(str(self.getParameterValue(self.ZONE)))
     commands.append('0')
     commands.append('0')
     files = self.getParameterValue(self.INPUT).split(';')
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())
     FusionUtils.runFusion(commands, progress)
开发者ID:GiordanoPezzola,项目名称:QGIS,代码行数:21,代码来源:ASCII2DTM.py

示例14: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), 'GroundFilter.exe')]
     commands.append('/verbose')
     self.addAdvancedModifiersToCommand(commands)
     outFile = self.getOutputValue(self.OUTPUT) + '.lda'
     commands.append(str(self.getParameterValue(self.CELLSIZE)))
     commands.append(outFile)
     files = self.getParameterValue(self.INPUT).split(';')
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())
     FusionUtils.runFusion(commands, progress)
     commands = [os.path.join(FusionUtils.FusionPath(), 'LDA2LAS.exe')]
     commands.append(outFile)
     commands.append(self.getOutputValue(self.OUTPUT))
     p = subprocess.Popen(commands, shell=True)
     p.wait()
开发者ID:meizhoubao,项目名称:QGIS,代码行数:21,代码来源:GroundFilter.py

示例15: processAlgorithm

# 需要导入模块: from FusionUtils import FusionUtils [as 别名]
# 或者: from FusionUtils.FusionUtils import tempFileListFilepath [as 别名]
 def processAlgorithm(self, progress):
     commands = [os.path.join(FusionUtils.FusionPath(), "FilterData.exe")]
     commands.append("/verbose")
     self.addAdvancedModifiersToCommand(commands)
     commands.append("outlier")
     commands.append(str(self.getParameterValue(self.VALUE)))
     commands.append(str(self.getParameterValue(self.WINDOWSIZE)))
     outFile = self.getOutputValue(self.OUTPUT) + ".lda"
     commands.append(outFile)
     files = self.getParameterValue(self.INPUT).split(";")
     if len(files) == 1:
         commands.append(self.getParameterValue(self.INPUT))
     else:
         FusionUtils.createFileList(files)
         commands.append(FusionUtils.tempFileListFilepath())
     FusionUtils.runFusion(commands, progress)
     commands = [os.path.join(FusionUtils.FusionPath(), "LDA2LAS.exe")]
     commands.append(outFile)
     commands.append(self.getOutputValue(self.OUTPUT))
     p = subprocess.Popen(commands, shell=True)
     p.wait()
开发者ID:NagosCrit,项目名称:QGIS,代码行数:23,代码来源:FilterData.py


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