Ejemplo n.º 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())
Ejemplo n.º 2
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()
         Processing.BASIC_PROVIDERS.append(p)
         QgsApplication.processingRegistry().addProvider(p)
     # And initialize
     ProcessingConfig.initialize()
     ProcessingConfig.readSettings()
     RenderingStyles.loadStyles()
Ejemplo n.º 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
Ejemplo n.º 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)
Ejemplo n.º 7
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

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

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

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

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

        # Load algorithms
        self.alglist = [PgPointCloudImport(), ExtentImport()]
Ejemplo n.º 16
0
 def __init__(self):
     """
     Default constructor.
     """
     self.plugin_dir = os.path.dirname(__file__)
     QgsProcessingProvider.__init__(self)
Ejemplo n.º 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()]
Ejemplo n.º 19
0
 def icon(self):
     return QgsProcessingProvider.icon(self)
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [FuturMapPDALAlgorithm()]
Ejemplo n.º 21
0
 def __init__(self):
     QgsProcessingProvider.__init__(self)
     self.styleOutputFootPrint = StyleOutputFootPrint()
Ejemplo n.º 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)
Ejemplo n.º 29
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [DensityMapAlgorithm()]
Ejemplo n.º 30
0
 def icon(self):
     """We return the default icon.
     """
     return QgsProcessingProvider.icon(self)
 def unload(self):
     QgsProcessingProvider.unload(self)
Ejemplo n.º 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)
Ejemplo n.º 33
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [GeodesicDensifyAlgorithm()]
Ejemplo n.º 34
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

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

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