示例#1
0
 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
0
文件: Processing.py 项目: Jacory/QGIS
 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
0
 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()
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Deactivate provider by default
        self.activate = False
示例#5
0
 def unload(self):
     QgsProcessingProvider.unload(self)
 def icon(self):
     """
     Should return a QIcon which is used for your provider inside
     the Processing toolbox.
     """
     return QgsProcessingProvider.icon(self)
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Deactivate provider by default
        self.activate = False
示例#8
0
 def __init__(self, parent=None):
     """
     Default constructor.
     """
     QgsProcessingProvider.__init__(self, parent)
示例#9
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [OfflineMapMatchingAlgorithm()]
示例#10
0
 def __init__(self):  # pylint: disable=useless-super-delegation
     QgsProcessingProvider.__init__(self)
 def __init__(self) -> None:
     QgsProcessingProvider.__init__(self)
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [MGRStoLayerlgorithm(), ToMGRSAlgorithm()]
示例#13
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [ExportFieldAlgorithm()]
示例#14
0
 def unload(self):
     """Setting should be removed here, so they do not appear anymore
     when the plugin is unloaded.
     """
     QgsProcessingProvider.unload(self)
示例#15
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [PgPointCloudImport(), ExtentImport()]
示例#16
0
 def __init__(self):
     """
     Default constructor.
     """
     self.plugin_dir = os.path.dirname(__file__)
     QgsProcessingProvider.__init__(self)
示例#17
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [ReverseGeocode(), Geocode()]
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [WorkflowTestAlgorithm()]
示例#19
0
 def icon(self):
     return QgsProcessingProvider.icon(self)
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [FuturMapPDALAlgorithm()]
示例#21
0
 def __init__(self):
     QgsProcessingProvider.__init__(self)
     self.styleOutputFootPrint = StyleOutputFootPrint()
示例#22
0
 def unload(self):
     """Setting should be removed here, so they do not appear anymore
     when the plugin is unloaded.
     """
     QgsProcessingProvider.unload(self)
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [ClusterPointsAlgorithm()]
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [DemShadingAlgorithm(), OcclusionAlgorithm()]
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [LeastCostPathAlgorithm()]
 def __init__(self):
     """
     Default constructor.
     """
     QgsProcessingProvider.__init__(self)
 def unload(self):
     """
     Unloads the provider. Any tear-down steps required by the provider
     should be implemented here.
     """
     QgsProcessingProvider.unload(self)
 def __init__(self):
     QgsProcessingProvider.__init__(self)
示例#29
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [DensityMapAlgorithm()]
示例#30
0
 def icon(self):
     """We return the default icon.
     """
     return QgsProcessingProvider.icon(self)
 def unload(self):
     QgsProcessingProvider.unload(self)
示例#32
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [ReseauTi(),
                        AjoutChamp(),
                        ConcatFolder(),
                        ConnecteursGeo(),
                        Contours(),
                        CreerGraphe(),
                        Interpole(),
                        Majtitj(),
                        ImportGTFS(),
                        Inverser(),
                        InverserSelection(),
                        ReseauTC(),
                        PrepareGTFS(),
                        ConnectNodes2Lines(),
                        CalculMusliw(),
                        MusliwParam(),
                        SimpleMatrix(),
                        MatrixSimpleList(),
                        MatrixDoubleList(),
                        IsolatedNodes(),
                        FichierAff(),
                        ShiftLines(),
                        FichierOD(),
                        FichierTemps(),
                        FichierTempsJour(),
                        Trafic(),
                        SpatialAggregation(),
                        Routes(),
                        PathAnalysis(),
                        ArcsTi(),
                        MajLinksTimes(),
                        NodesFile(),
                        NodesFileDay(),
                        AutoConnecteurs(),
                        MatrixTable(),
                        MajLinksPole(),
                        CreateUpdateLinks(),
                        PathIndicators()]
        
        self.plugin_dir = os.path.dirname(__file__)
        # initialize locale
        locale = QSettings().value('locale/userLocale')
        
        if locale==None:
            locale='en'
        else: 
            locale=locale[-2:]
        
        locale_path = os.path.join(
            self.plugin_dir,
            'i18n',
            'networks_{0}.qm'.format(locale))

        if os.path.exists(locale_path):
            self.translator = QTranslator()
            self.translator.load(locale_path)
            QCoreApplication.installTranslator(self.translator)
示例#33
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [GeodesicDensifyAlgorithm()]
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [EstimateEcosystemServiceValuesForStudyRegion(), MapTheValueOfIndividualEcosystemServices(), CreatePrintLayoutAndExportMap()]
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [PointsToCatchmentsAlgorithm()]
示例#36
0
 def icon(self):
     """We return the default icon.
     """
     return QgsProcessingProvider.icon(self)
示例#37
0
 def __init__(self):
     QgsProcessingProvider.__init__(self)
     self.algs = []