Skip to content

Commit

Permalink
disable gap parameter as it is unclear if it useful
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed May 16, 2014
1 parent 2d0e950 commit 4d5b7d3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/plugins/processing/algs/qgis/PointsToPaths.py
Expand Up @@ -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

Expand All @@ -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):
Expand All @@ -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):
Expand All @@ -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))
Expand Down

0 comments on commit 4d5b7d3

Please sign in to comment.