QGIS/python/plugins/sagaprovider/SagaProviderPlugin.py
2021-06-21 07:17:35 +03:00

40 lines
1.4 KiB
Python

# -*- coding: utf-8 -*-
"""
***************************************************************************
sagaproviderplugin.py
---------------------
Date : May 2021
Copyright : (C) 2021 by Alexander Bruy
Email : alexander dot bruy at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
__author__ = 'Alexander Bruy'
__date__ = 'May 2021'
__copyright__ = '(C) 2021, Alexander Bruy'
from qgis.core import QgsApplication
from sagaprovider.SagaAlgorithmProvider import SagaAlgorithmProvider
class SagaProviderPlugin:
def __init__(self):
self.provider = SagaAlgorithmProvider()
def initGui(self):
QgsApplication.processingRegistry().addProvider(self.provider)
def unload(self):
QgsApplication.processingRegistry().removeProvider(self.provider)