當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。