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


Python core.QgsProcessingProvider类代码示例

本文整理汇总了Python中qgis.core.QgsProcessingProvider的典型用法代码示例。如果您正苦于以下问题:Python QgsProcessingProvider类的具体用法?Python QgsProcessingProvider怎么用?Python QgsProcessingProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: __init__

 def __init__(self,providerType='Standard'):
     
     QgsProcessingProvider.__init__(self)
         
     # Load algorithms
     self.alglist = [trainAlgorithm(),classifyAlgorithm(),splitTrain(),\
                     domainAdaptation(),trainSLOOAlgorithm(),trainSTANDalgorithm()]#,learnWithSpatialSampling()]#,classifyAlgorithm(),splitTrain()]
     
     if providerType == 'Experimental':
     
         from .processing.shannonEntropy import shannonAlgorithm
         from .processing.resampleImageSameDate import resampleImageSameDateAsSource
         from .processing.medianFilter import medianFilterAlgorithm
         self.alglist.append(shannonAlgorithm())
         self.alglist.append(resampleImageSameDateAsSource())
         self.alglist.append(medianFilterAlgorithm())
开发者ID:lennepkade,项目名称:dzetsaka,代码行数:16,代码来源:dzetsaka_provider.py

示例2: initialize

 def initialize():
     if "model" in [p.id() for p in QgsApplication.processingRegistry().providers()]:
         return
     # Add the basic providers
     for c in QgsProcessingProvider.__subclasses__():
         p = c()
         Processing.BASIC_PROVIDERS.append(p)
         QgsApplication.processingRegistry().addProvider(p)
     # And initialize
     ProcessingConfig.initialize()
     ProcessingConfig.readSettings()
     RenderingStyles.loadStyles()
开发者ID:Jacory,项目名称:QGIS,代码行数:12,代码来源:Processing.py

示例3: initialize

 def initialize():
     if "model" in [p.id() for p in QgsApplication.processingRegistry().providers()]:
         return
     # Add the basic providers
     for c in QgsProcessingProvider.__subclasses__():
         p = c()
         if p.id() in ('native', '3d'):
             # c++ providers are already registered
             continue
         if QgsApplication.processingRegistry().addProvider(p):
             Processing.BASIC_PROVIDERS.append(p)
     # And initialize
     ProcessingConfig.initialize()
     ProcessingConfig.readSettings()
     RenderingStyles.loadStyles()
开发者ID:ccrook,项目名称:Quantum-GIS,代码行数:15,代码来源:Processing.py

示例4: icon

 def icon(self):
     """We return the default icon.
     """
     return QgsProcessingProvider.icon(self)
开发者ID:tomchadwin,项目名称:QGIS,代码行数:4,代码来源:ExampleAlgorithmProvider.py

示例5: unload

 def unload(self):
     QgsProcessingProvider.unload(self)
开发者ID:NationalSecurityAgency,项目名称:qgis-latlontools-plugin,代码行数:2,代码来源:provider.py

示例6: __init__

    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Deactivate provider by default
        self.activate = False
开发者ID:lutraconsulting,项目名称:qgis-crayfish-plugin,代码行数:5,代码来源:__init__.py

示例7: unload

 def unload(self):
     """Setting should be removed here, so they do not appear anymore
     when the plugin is unloaded.
     """
     QgsProcessingProvider.unload(self)
开发者ID:Tomacorcoran,项目名称:qgis2web,代码行数:5,代码来源:qgis2webProvider.py


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