本文整理汇总了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())
示例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()
示例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()
示例4: icon
def icon(self):
"""We return the default icon.
"""
return QgsProcessingProvider.icon(self)
示例5: unload
def unload(self):
QgsProcessingProvider.unload(self)
示例6: __init__
def __init__(self):
QgsProcessingProvider.__init__(self)
# Deactivate provider by default
self.activate = False
示例7: unload
def unload(self):
"""Setting should be removed here, so they do not appear anymore
when the plugin is unloaded.
"""
QgsProcessingProvider.unload(self)