-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathQneat3Plugin.py
38 lines (29 loc) · 1.36 KB
/
Qneat3Plugin.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
# -*- coding: utf-8 -*-
"""
***************************************************************************
Qneat3Plugin.py
---------------------
Date : January 2018
Copyright : (C) 2018 by Clemens Raffler
Email : clemens dot raffler 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. *
* *
***************************************************************************
"""
from QNEAT3.Qneat3Provider import Qneat3Provider
from qgis.core import QgsApplication
class Qneat3Plugin:
def __init__(self, iface):
self.provider = None
def initProcessing(self):
self.provider = Qneat3Provider()
QgsApplication.processingRegistry().addProvider(self.provider)
def initGui(self):
self.initProcessing()
def unload(self):
QgsApplication.processingRegistry().removeProvider(self.provider)