Skip to content
Permalink
Browse files
disable gap parameter as it is unclear if it useful
  • Loading branch information
alexbruy committed May 16, 2014
1 parent 2d0e950 commit 4d5b7d379b0eff117e87e8b01f007d9ddec91d9d
Showing with 6 additions and 6 deletions.
  1. +6 −6 python/plugins/processing/algs/qgis/PointsToPaths.py
@@ -38,7 +38,7 @@
from processing.parameters.ParameterVector import ParameterVector
from processing.parameters.ParameterTableField import ParameterTableField
from processing.parameters.ParameterString import ParameterString
from processing.parameters.ParameterNumber import ParameterNumber
#from processing.parameters.ParameterNumber import ParameterNumber
from processing.outputs.OutputVector import OutputVector
from processing.tools import dataobjects, vector

@@ -48,7 +48,7 @@ class PointsToPaths(GeoAlgorithm):
GROUP_FIELD = 'GROUP_FIELD'
ORDER_FIELD = 'ORDER_FIELD'
DATE_FORMAT = 'DATE_FORMAT'
GAP_PERIOD = 'GAP_PERIOD'
#GAP_PERIOD = 'GAP_PERIOD'
OUTPUT = 'OUTPUT'

def defineCharacteristics(self):
@@ -62,9 +62,9 @@ def defineCharacteristics(self):
ParameterTableField(self.ORDER_FIELD, 'Order field', self.VECTOR))
self.addParameter(ParameterString(self.DATE_FORMAT,
'Date format (if order field is DateTime)', '', optional=True))
self.addParameter(ParameterNumber(
self.GAP_PERIOD,
'Gap period (if order field is DateTime)', 0, 60, 0))
#self.addParameter(ParameterNumber(
# self.GAP_PERIOD,
# 'Gap period (if order field is DateTime)', 0, 60, 0))
self.addOutput(OutputVector(self.OUTPUT, 'Paths'))

def processAlgorithm(self, progress):
@@ -73,7 +73,7 @@ def processAlgorithm(self, progress):
groupField = self.getParameterValue(self.GROUP_FIELD)
orderField = self.getParameterValue(self.ORDER_FIELD)
dateFormat = unicode(self.getParameterValue(self.DATE_FORMAT))
gap = int(self.getParameterValue(self.GAP_PERIOD))
#gap = int(self.getParameterValue(self.GAP_PERIOD))

fields = QgsFields()
fields.append(QgsField('group', QVariant.String, '', 254, 0))

0 comments on commit 4d5b7d3

Please sign in to comment.