Skip to content

Commit 531528d

Browse files
committed
Improve help strings
1 parent d08322c commit 531528d

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

qgis_processing/overlayAlgorithm.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
QgsProcessingParameterFeatureSource,
1919
QgsProcessingParameterString,
2020
QgsProcessingParameterExtent,
21-
QgsProcessingParameterField,
22-
QgsProcessingParameterNumber,
23-
QgsProcessingParameterBoolean,
24-
QgsProcessingParameterFeatureSink,
25-
QgsProcessingParameterEnum,
26-
QgsWkbTypes,
2721
)
2822

2923
sys.path.append("..")
@@ -56,7 +50,7 @@ def displayName(self):
5650
return self.tr("Clip trajectories by extent")
5751

5852
def group(self):
59-
return self.tr("Overlay")
53+
return self.tr("Trajectory overlay")
6054

6155
def groupId(self):
6256
return "TrajectoryOverlay"

qgis_processing/splitTrajectoriesAlgorithm.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ def shortHelpString(self):
5454
"https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.to_timedelta.html)</p>"
5555
"<p>For more information on trajectory splitters see: "
5656
"https://movingpandas.readthedocs.io/en/main/trajectorysplitter.html</p>"
57+
"<p><b>Speed</b> is calculated based on the input layer CRS information and "
58+
"converted to the desired speed units. For more info on the supported units, "
59+
"see https://movingpandas.org/units</p>"
60+
"<p><b>Direction</b> is calculated between consecutive locations. Direction "
61+
"values are in degrees, starting North turning clockwise.</p>"
5762
)
5863

5964
def processTc(self, tc, parameters, context):
@@ -102,6 +107,11 @@ def shortHelpString(self):
102107
"using regular time intervals (year, month, day, hour): </p>"
103108
"<p>For more information on trajectory splitters see: "
104109
"https://movingpandas.readthedocs.io/en/main/trajectorysplitter.html</p>"
110+
"<p><b>Speed</b> is calculated based on the input layer CRS information and "
111+
"converted to the desired speed units. For more info on the supported units, "
112+
"see https://movingpandas.org/units</p>"
113+
"<p><b>Direction</b> is calculated between consecutive locations. Direction "
114+
"values are in degrees, starting North turning clockwise.</p>"
105115
)
106116

107117
def processTc(self, tc, parameters, context):
@@ -149,10 +159,14 @@ def displayName(self):
149159

150160
def shortHelpString(self):
151161
return self.tr(
152-
"<p>Splits trajectories into subtrajectories "
153-
"at stops. </p>"
162+
"<p>Splits trajectories into subtrajectories at stops. </p>"
154163
"<p>For more information on trajectory splitters see: "
155164
"https://movingpandas.readthedocs.io/en/main/trajectorysplitter.html</p>"
165+
"<p><b>Speed</b> is calculated based on the input layer CRS information and "
166+
"converted to the desired speed units. For more info on the supported units, "
167+
"see https://movingpandas.org/units</p>"
168+
"<p><b>Direction</b> is calculated between consecutive locations. Direction "
169+
"values are in degrees, starting North turning clockwise.</p>"
156170
)
157171

158172
def processTc(self, tc, parameters, context):

qgis_processing/trajectoolsProvider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def id(self):
2828
return "Trajectory"
2929

3030
def name(self):
31-
return "Trajectory tools for Processing"
31+
return "Trajectory tools"
3232

3333
def icon(self):
3434
return QIcon(os.path.join(pluginPath, "icons", "icon.png"))

0 commit comments

Comments
 (0)