-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwind_forecast_routing_launch_nooutput.py
69 lines (56 loc) · 2.59 KB
/
wind_forecast_routing_launch_nooutput.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
57
58
59
60
61
62
63
64
65
66
67
68
69
# -*- coding: utf-8 -*-
"""
/***************************************************************************
windForecastRouting
A QGIS plugin
sailing routing by wind forecast
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-------------------
begin : 2021-03-30
copyright : (C) 2021 by enrico ferreguti
email : enricofer@gmail.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. *
* *
***************************************************************************/
"""
__author__ = 'enrico ferreguti'
__date__ = '2021-03-30'
__copyright__ = '(C) 2021 by enrico ferreguti'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'
from .wind_forecast_routing_launch import windForecastLaunchAlgorithm
class windForecastLaunchNoOutputAlgorithm(windForecastLaunchAlgorithm):
def initAlgorithm(self, config):
config["nooutput"] = True
super(windForecastLaunchNoOutputAlgorithm, self).initAlgorithm(config=config)
def name(self):
return 'windroutinglaunchnooutput'
def displayName(self):
"""
Returns the translated algorithm name, which should be used for any
user-visible display of the algorithm name.
"""
return 'Toolbar support'
def group(self):
"""
Returns the name of the group this algorithm belongs to. This string
should be localised.
"""
return self.tr('Sail tools')
def groupId(self):
"""
Returns the unique ID of the group this algorithm belongs to. This
string should be fixed for the algorithm, and must not be localised.
The group id should be unique within each provider. Group id should
contain lowercase alphanumeric characters only and no spaces or other
formatting characters.
"""
return 'sailtools'
def createInstance(self):
return windForecastLaunchNoOutputAlgorithm()