Skip to content

Commit 4ed220e

Browse files
committed
fix: add csv_colum parameter to request in ponts_layers_proc
1 parent 2f925e7 commit 4ed220e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ORStools/proc/directions_points_layers_proc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ def processAlgorithm(
157157
options = self.parseOptions(parameters, context)
158158

159159
csv_factor = self.parameterAsDouble(parameters, self.CSV_FACTOR, context)
160+
csv_column = self.parameterAsString(parameters, self.CSV_COLUMN, context)
160161
if csv_factor > 0:
161-
options["profile_params"] = {"weightings": {"csv_factor": csv_factor}}
162+
options["profile_params"] = {"weightings": {"csv_factor": csv_factor, "csv_column": csv_column}}
162163

163164
extra_info = self.parameterAsEnums(parameters, self.EXTRA_INFO, context)
164165
extra_info = [EXTRA_INFOS[i] for i in extra_info]

0 commit comments

Comments
 (0)