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)
 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')
 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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
    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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #20
0
 def unload(self):
     ProcessingConfig.removeSetting(QTO3_ACTIVE)
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(WorkflowUtils.WORKFLOW_FOLDER)
     # Remove toolbar button
     self.iface.removeToolBarIcon(self.action)
Beispiel #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)
Beispiel #24
0
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(OTBUtils.OTB_FOLDER)
     ProcessingConfig.removeSetting(OTBUtils.OTB_LIB_FOLDER)
Beispiel #25
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_GDAL')
     ProcessingConfig.removeSetting(GdalUtils.GDAL_HELP_PATH)
Beispiel #26
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_SAGA')
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)
Beispiel #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)
Beispiel #28
0
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(TauDEMUtils.TAUDEM_FOLDER)
     ProcessingConfig.removeSetting(TauDEMUtils.MPIEXEC_FOLDER)
     ProcessingConfig.removeSetting(TauDEMUtils.MPI_PROCESSES)
Beispiel #29
0
 def unload(self):
     ProcessingConfig.removeSetting(pktoolsUtils.PKTOOLS_DIRECTORY)
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting('Epanet_CLI')
Beispiel #31
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_GDAL')
     ProcessingConfig.removeSetting(GdalUtils.GDAL_HELP_PATH)
Beispiel #32
0
 def unload(self):
     for setting in OtbUtils.settingNames():
         ProcessingConfig.removeSetting(setting)
Beispiel #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)
 def unload(self):
     print "unloading swmm"
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting('Swmm_CLI')
Beispiel #36
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_GDAL')
Beispiel #37
0
    def unload(self):
        ProcessingConfig.removeSetting(ScriptUtils.SCRIPTS_FOLDERS)

        ProviderActions.deregisterProviderActions(self)
        ProviderContextMenuActions.deregisterProviderContextMenuActions(self.contextMenuActions)
Beispiel #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)
Beispiel #39
0
 def unload(self):
     for setting in OtbSettings.keys():
         ProcessingConfig.removeSetting(setting)
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(GdalUtils.GDAL_HELP_PATH)
Beispiel #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')
Beispiel #44
0
 def unload(self):
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)
     ProcessingConfig.removeSetting(SagaUtils.SAGA_FOLDER)
Beispiel #45
0
 def unload(self):
     AlgorithmProvider.unload(self)
     ProcessingConfig.removeSetting(OTBUtils.OTB_FOLDER)
     ProcessingConfig.removeSetting(OTBUtils.OTB_LIB_FOLDER)
Beispiel #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)
Beispiel #47
0
 def unload(self):
     ProcessingConfig.removeSetting('ACTIVATE_GDAL')
Beispiel #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)