1 Star 0 Fork 1

gis9/WaterNetAnalyzer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
waternetanalyzer.py 2.13 KB
一键复制 编辑 原始数据 按行查看 历史
Jannik-Schilling 提交于 2019-08-20 13:28 . Add files via upload
# -*- coding: utf-8 -*-
"""
/***************************************************************************
WaterNets
A QGIS plugin
This plugin calculates flowpaths
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-------------------
begin : 2019-07-26
copyright : (C) 2019 by Jannik Schilling
email : jannik.schilling@uni-rostock.de
***************************************************************************/
/***************************************************************************
* *
* 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__ = 'Jannik Schilling'
__date__ = '2019-07-26'
__copyright__ = '(C) 2019 by Jannik Schilling'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'
import os
import sys
import inspect
from qgis.core import QgsProcessingAlgorithm, QgsApplication
from .waternetanalyzer_provider import WaterNetsProvider
cmd_folder = os.path.split(inspect.getfile(inspect.currentframe()))[0]
if cmd_folder not in sys.path:
sys.path.insert(0, cmd_folder)
class WaterNetsAnalyzer(object):
def __init__(self):
self.provider = None
def initProcessing(self):
"""Init Processing provider for QGIS >= 3.8."""
self.provider = WaterNetsProvider()
QgsApplication.processingRegistry().addProvider(self.provider)
def initGui(self):
self.initProcessing()
def unload(self):
try:
QgsApplication.processingRegistry().removeProvider(self.provider)
except:
pass
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gis9/WaterNetAnalyzer.git
git@gitee.com:gis9/WaterNetAnalyzer.git
gis9
WaterNetAnalyzer
WaterNetAnalyzer
master

搜索帮助