def unload(self):
     """Setting should be removed here, so they do not appear anymore
     when the plugin is unloaded.
     """
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(
         Basis_nl_algorithm_provider.INPUT_FOLDER)
Пример #2
0
 def unload(self):
     """Setting should be removed here, so they do not appear anymore
     when the plugin is unloaded.
     """
     ProcessingConfig.removeSetting('ACTIVATE_EXAMPLE')
     ProcessingConfig.removeSetting(
         ExampleAlgorithmProvider.MY_DUMMY_SETTING)
    def unload(self):
        """
        Unloads the provider. Any tear-down steps required by the provider
        should be implemented here.
        """
		
        ProcessingConfig.removeSetting('VISIBILITY_ANALYSIS_ACTIVATED')
Пример #4
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_GRASS7')
     if isWindows() or isMac():
         ProcessingConfig.removeSetting(Grass7Utils.GRASS_FOLDER)
     ProcessingConfig.removeSetting(Grass7Utils.GRASS_LOG_COMMANDS)
     ProcessingConfig.removeSetting(Grass7Utils.GRASS_LOG_CONSOLE)
     ProcessingConfig.removeSetting(Grass7Utils.GRASS_HELP_PATH)
 def unload(self):
     """Setting should be removed here, so they do not appear anymore
     when the plugin is unloaded.
     """
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(
         DifferentialPrivacyUtils.DIFFERENTIAL_EPSILON)
Пример #6
0
 def testGrass(self):
     '''Test GRASS is installed QGIS-89 (2)'''
     folder = ProcessingConfig.getSetting(GrassUtils.GRASS_FOLDER)
     ProcessingConfig.removeSetting(GrassUtils.GRASS_FOLDER)
     msg = GrassUtils.checkGrassIsInstalled()
     self.assertIsNone(msg)
     ProcessingConfig.setSettingValue(GrassUtils.GRASS_FOLDER, folder)
 def unload(self):
     """Setting should be removed here, so they do not appear anymore
     when the plugin is unloaded.
     """
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(
         MultiClipProvider.MY_DUMMY_SETTING)
 def unload(self):
     """Setting should be removed here, so they do not appear anymore
     when the plugin is unloaded.
     """
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(
         ScipyPointClusteringUtils.POINT_LIMIT
     )
    def unload(self):
        """Setting should be removed here, so they do not appear anymore
        when the plugin is unloaded.

        """
        AlgorithmProvider.unload(self)
        ProcessingConfig.removeSetting(
            PolygonsParallelToLineProvider.MY_SETTING)
 def unload(self):
     """
     Setting should be removed here, so they do not appear anymore
     when the plugin is unloaded.
     """
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(
         GISCloudUtils.GISCloud_character)
 def unload(self):
     AlgorithmProvider.unload(self)
     if isWindows() or isMac():
         ProcessingConfig.removeSetting(GrassUtils.GRASS_FOLDER)
         ProcessingConfig.removeSetting(GrassUtils.GRASS_WIN_SHELL)
     ProcessingConfig.removeSetting(GrassUtils.GRASS_LOG_COMMANDS)
     ProcessingConfig.removeSetting(GrassUtils.GRASS_LOG_CONSOLE)
     ProcessingConfig.removeSetting(GrassUtils.GRASS_HELP_PATH)
Пример #12
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_R')
     ProcessingConfig.removeSetting(RUtils.RSCRIPTS_FOLDER)
     if isWindows():
         ProcessingConfig.removeSetting(RUtils.R_FOLDER)
         ProcessingConfig.removeSetting(RUtils.R_LIBS_USER)
         ProcessingConfig.removeSetting(RUtils.R_USE64)
     ProviderActions.deregisterProviderActions(self)
     ProviderContextMenuActions.deregisterProviderContextMenuActions(self.contextMenuActions)
Пример #13
0
    def unload(self):
        """Do here anything that you want to be done when the provider
        is removed from the list of available ones.

        This method is called when you remove the provider from
        Processing. Removal of config setting should be done here.
        """
        name = 'ACTIVATE_' + self.getName().upper().replace(' ', '_')
        ProcessingConfig.removeSetting(name)
Пример #14
0
 def unload(self):
     '''Setting should be removed here, so they do not appear anymore
     when the plugin is unloaded'''
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(qsdm_settings.JAVA_EXEC)
     ProcessingConfig.removeSetting(qsdm_settings.MAXENT)
     ProcessingConfig.removeSetting(qsdm_settings.MEM)        
     ProcessingConfig.removeSetting(qsdm_settings.WORK_DIR)
     ProcessingConfig.removeSetting(qsdm_settings.TEMP)
Пример #15
0
 def testSaga(self):
     '''Test SAGA is installed. QGIS-89 (1)'''
     folder = ProcessingConfig.getSetting(SAGA_FOLDER)
     hasSetting = True
     try:
         ProcessingConfig.removeSetting(SAGA_FOLDER)
     except:
         hasSetting = False
     self.assertTrue(getSagaInstalledVersion(True) in ["2.1.2", "2.1.3", "2.1.4", "2.2.0"])
     if hasSetting:
         ProcessingConfig.setSettingValue(SAGA_FOLDER, folder)
Пример #16
0
    def unload(self):
        ProcessingConfig.removeSetting('ACTIVATE_SAGA')
        if (isWindows() or isMac()):
            ProcessingConfig.removeSetting(SagaUtils.SAGA_FOLDER)

        ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
        ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)
Пример #17
0
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(RUtils.RSCRIPTS_FOLDER)
     if isWindows():
         ProcessingConfig.removeSetting(RUtils.R_FOLDER)
         ProcessingConfig.removeSetting(RUtils.R_LIBS_USER)
         ProcessingConfig.removeSetting(RUtils.R_USE64)
Пример #18
0
    def unload(self):
        AlgorithmProvider.unload(self)
        if (isWindows() or isMac()) and SagaUtils.findSagaFolder() is None:
            ProcessingConfig.removeSetting(SagaUtils.SAGA_FOLDER)

        ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
        ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)
Пример #19
0
    def unload(self):
        AlgorithmProvider.unload(self)
        if isWindows():
            ProcessingConfig.removeSetting(SagaUtils.SAGA_FOLDER)

        ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
        ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)
Пример #20
0
 def unload(self):
     ProcessingConfig.removeSetting(QTO3_ACTIVE)
Пример #21
0
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(WorkflowUtils.WORKFLOW_FOLDER)
     # Remove toolbar button
     self.iface.removeToolBarIcon(self.action)
Пример #22
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_GRASS7')
     if isWindows() or isMac():
         ProcessingConfig.removeSetting(Grass7Utils.GRASS_FOLDER)
     ProcessingConfig.removeSetting(Grass7Utils.GRASS_LOG_COMMANDS)
     ProcessingConfig.removeSetting(Grass7Utils.GRASS_LOG_CONSOLE)
     ProcessingConfig.removeSetting(Grass7Utils.GRASS_HELP_PATH)
     ProcessingConfig.removeSetting(Grass7Utils.GRASS_USE_VEXTERNAL)
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(TauDEMUtils.TAUDEM_FOLDER)
     ProcessingConfig.removeSetting(TauDEMUtils.MPIEXEC_FOLDER)
     ProcessingConfig.removeSetting(TauDEMUtils.MPI_PROCESSES)
Пример #24
0
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(OTBUtils.OTB_FOLDER)
     ProcessingConfig.removeSetting(OTBUtils.OTB_LIB_FOLDER)
Пример #25
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_GDAL')
     ProcessingConfig.removeSetting(GdalUtils.GDAL_HELP_PATH)
Пример #26
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_SAGA')
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)
Пример #27
0
 def testGrass(self):
     folder = ProcessingConfig.getSetting(GrassUtils.GRASS_FOLDER)
     ProcessingConfig.removeSetting(GrassUtils.GRASS_FOLDER)
     msg = GrassUtils.checkGrassIsInstalled()
     self.assertIsNone(msg)
     ProcessingConfig.setSettingValue(GrassUtils.GRASS_FOLDER, folder)
Пример #28
0
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(TauDEMUtils.TAUDEM_FOLDER)
     ProcessingConfig.removeSetting(TauDEMUtils.MPIEXEC_FOLDER)
     ProcessingConfig.removeSetting(TauDEMUtils.MPI_PROCESSES)
Пример #29
0
 def unload(self):
     ProcessingConfig.removeSetting(pktoolsUtils.PKTOOLS_DIRECTORY)
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting('Epanet_CLI')
Пример #31
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_GDAL')
     ProcessingConfig.removeSetting(GdalUtils.GDAL_HELP_PATH)
Пример #32
0
 def unload(self):
     for setting in OtbUtils.settingNames():
         ProcessingConfig.removeSetting(setting)
Пример #33
0
    def unload(self):
        ProcessingConfig.removeSetting(ScriptUtils.SCRIPTS_FOLDERS)

        ProviderActions.deregisterProviderActions(self)
        ProviderContextMenuActions.deregisterProviderContextMenuActions(
            self.contextMenuActions)
 def unload(self):
     AlgorithmProvider.unload(self)
     if ProcessingUtils.isWindows():
         ProcessingConfig.removeSetting(SagaUtils.SAGA_FOLDER)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_AUTO_RESAMPLING)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_XMIN)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_YMIN)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_XMAX)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_YMAX)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_CELLSIZE)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)
Пример #35
0
 def unload(self):
     print "unloading swmm"
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting('Swmm_CLI')
Пример #36
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_GDAL')
Пример #37
0
    def unload(self):
        ProcessingConfig.removeSetting(ScriptUtils.SCRIPTS_FOLDERS)

        ProviderActions.deregisterProviderActions(self)
        ProviderContextMenuActions.deregisterProviderContextMenuActions(self.contextMenuActions)
Пример #38
0
 def testSaga(self):
     folder = ProcessingConfig.getSetting(SAGA_FOLDER)
     ProcessingConfig.removeSetting(SAGA_FOLDER)
     self.assertTrue(getSagaInstalledVersion(True) in ["2.1.2", "2.1.3", "2.1.4"])
     ProcessingConfig.setSettingValue(SAGA_FOLDER, folder)
Пример #39
0
 def unload(self):
     for setting in OtbSettings.keys():
         ProcessingConfig.removeSetting(setting)
Пример #40
0
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(GdalUtils.GDAL_HELP_PATH)
Пример #41
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_SAGA')
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(GdalUtils.GDAL_HELP_PATH)
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting('Epanet_CLI')
Пример #44
0
 def unload(self):
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_FOLDER)
Пример #45
0
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(OTBUtils.OTB_FOLDER)
     ProcessingConfig.removeSetting(OTBUtils.OTB_LIB_FOLDER)
Пример #46
0
 def unload(self):
     AlgorithmProvider.unload(self)
     if isWindows() or isMac():
         ProcessingConfig.removeSetting(Grass7Utils.GRASS_FOLDER)
     ProcessingConfig.removeSetting(Grass7Utils.GRASS_LOG_COMMANDS)
     ProcessingConfig.removeSetting(Grass7Utils.GRASS_LOG_CONSOLE)
Пример #47
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_GDAL')
Пример #48
0
 def unload(self):
     AlgorithmProvider.unload(self)
     if ProcessingUtils.isWindows():
         ProcessingConfig.removeSetting(SagaUtils.SAGA_FOLDER)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_AUTO_RESAMPLING)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_XMIN)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_YMIN)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_XMAX)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_YMAX)
     ProcessingConfig.removeSetting(
         SagaUtils.SAGA_RESAMPLING_REGION_CELLSIZE)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)