Skip to content

Commit

Permalink
fix the query factory in processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Apr 1, 2015
1 parent 267053a commit cd94786
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions ProcessingQuickOSM/Tools/QueryFactoryGeoAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,8 @@ def defineCharacteristics(self):

self.addParameter(ParameterString(self.FIELD_KEY, 'Key','',optional=False))
self.addParameter(ParameterString(self.FIELD_VALUE, 'Value','',optional=True))
self.addParameter(ParameterExtent(self.FIELD_EXTENT, 'Extent (0,0,0,0 is wrong value)', default="0,0,0,0"))
self.addParameter(ParameterString(self.FIELD_NOMINATIM, 'Nominatim',optional=True))

#osm_objects = ['node','way','relation','all']
#self.addParameter(ParameterSelection(self.FIELD_OSM_OBJECTS, 'OSM objects', osm_objects, default=3))

self.addParameter(ParameterBoolean(self.FIELD_EXTENT, 'Use an extent, not compatible with nominatim', default=False))
self.addParameter(ParameterString(self.FIELD_NOMINATIM, 'Nominatim, not compatible with an extent',optional=True))
self.addParameter(ParameterNumber(self.FIELD_TIMEOUT, 'Timeout',minValue=20, default=25))

self.addOutput(OutputString(self.OUTPUT_QUERY,"Query"))
Expand Down Expand Up @@ -93,9 +89,6 @@ def processAlgorithm(self, progress):
if value == '':
value = None

if extent == "0,0,0,0":
extent = None

#osmObjects = self.getParameterValue(self.FIELD_OSM_OBJECTS)
timeout = self.getParameterValue(self.FIELD_TIMEOUT)

Expand Down

0 comments on commit cd94786

Please sign in to comment.