-
Notifications
You must be signed in to change notification settings - Fork 13
/
qgis2fds_provider.py
56 lines (45 loc) · 1.24 KB
/
qgis2fds_provider.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
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- coding: utf-8 -*-
"""qgis2fds"""
__author__ = "Emanuele Gissi"
__date__ = "2020-05-04"
__copyright__ = "(C) 2020 by Emanuele Gissi"
__revision__ = "$Format:%H$" # replaced with git SHA1
from qgis.core import QgsProcessingProvider
from .qgis2fds_algorithm import qgis2fdsAlgorithm
class qgis2fdsProvider(QgsProcessingProvider):
def __init__(self):
"""
Default constructor.
"""
QgsProcessingProvider.__init__(self)
def unload(self):
"""
Unloads the provider.
"""
pass
def loadAlgorithms(self):
"""
Loads all algorithms belonging to this provider.
"""
self.addAlgorithm(qgis2fdsAlgorithm())
def id(self):
"""
Returns the unique provider id.
"""
return "Export to NIST FDS"
def name(self):
"""
Returns the provider name.
"""
return "Export to NIST FDS"
def icon(self):
"""
Returns a QIcon which is used for your provider inside
the Processing toolbox.
"""
return QgsProcessingProvider.icon(self)
def longName(self):
"""
Returns the a longer version of the provider name.
"""
return self.name()