Skip to content
Permalink
Browse files
add plugin files
  • Loading branch information
alexbruy committed Jun 21, 2021
1 parent 277b71a commit 677849c3758b79801b13bd61a1ec29d75741ac1c
Empty file.
@@ -0,0 +1,39 @@
# -*- 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)
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-

"""
***************************************************************************
__init__.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'


def classFactory(iface):
from sagaprovider.sagaproviderplugin import SagaProviderPlugin
return SagaProviderPlugin()

0 comments on commit 677849c

Please sign in to comment.