-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
43 lines (33 loc) · 1.5 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# coding=utf-8
# RUBEM Hydrological is a QGIS plugin that assists in setup the RUBEM model:
# Copyright (C) 2021-2024 LabSid PHA EPUSP
# 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 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# Contact: rubem.hydrological@labsid.eng.br
"""RUBEM Hydrological plugin starting point.
This file is required by Python’s import system.
Also, QGIS requires that this file contains a `classFactory()` function,\n
which is called when the plugin gets loaded into QGIS.
"""
def classFactory(iface):
"""Call when the plugin gets loaded into QGIS.
:param iface: Reference to the instance of `QgisInterface`.
:type iface: class
:return: Object of RUBEM Hydrological plugin’s class from the\n
`rubem_hydrological.py` (`RUBEMHydrological`).
:rtype: class
"""
try:
from .plugin.core import RUBEMHydrological
except ImportError:
from plugin.core import RUBEMHydrological
return RUBEMHydrological(iface)