forked from AirBreak-UIA/SensorThingsAPI_QGIS-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
27 lines (21 loc) · 797 Bytes
/
__init__.py
File metadata and controls
27 lines (21 loc) · 797 Bytes
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
# -*- coding: utf-8 -*-
from PyQt5.QtCore import QCoreApplication
#: Constant name of plugin
__QGIS_PLUGIN_NAME__ = 'SensorThings API'
#: Constant to enable debug messages in plugin log.
__PLG_DEBUG__ = False
#: Global instance of configuration class
plgConfig = None
# noinspection PyPep8Naming
def classFactory(iface): # pylint: disable=invalid-name
"""Instantiates SensorThings API Plugin.
:param iface: A QGIS interface instance.
:type iface: QgsInterface
"""
# Instance global configuration class
from SensorThingsAPI.sensor_things_config import SensorThingsConfig
global plgConfig # pylint: disable=W0603
plgConfig = SensorThingsConfig()
# start
from SensorThingsAPI.sensor_things import SensorThingsPlugin
return SensorThingsPlugin(iface)