Skip to content

Commit

Permalink
fix keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondnijssen authored and m-kuhn committed May 11, 2019
1 parent 052db03 commit a6d9d26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/qgis/ExtentFromLayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def svgIconPath(self):
return QgsApplication.iconPath("/algorithms/mAlgorithmExtractLayerExtent.svg")

def tags(self):
return self.tr('polygon,from,vector,raster,extent,envelope,bounds,bounding,boundary,layer,round,rounded').split(',')
return self.tr('polygon,vector,raster,extent,envelope,bounds,bounding,boundary,layer,round,rounded').split(',')

def group(self):
return self.tr('Layer tools')
Expand All @@ -78,7 +78,8 @@ def __init__(self):
def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterMapLayer(self.INPUT, self.tr('Input layer')))
self.addParameter(QgsProcessingParameterNumber(self.ROUND_TO,
self.tr('Round values to'), minValue=0,
self.tr('Round values to'),
minValue=0,
defaultValue=0,
type=QgsProcessingParameterNumber.Double))
self.addParameter(QgsProcessingParameterFeatureSink(self.OUTPUT, self.tr('Extent'), type=QgsProcessing.TypeVectorPolygon))
Expand All @@ -94,7 +95,6 @@ def processAlgorithm(self, parameters, context, feedback):

round_to = self.parameterAsDouble(parameters, self.ROUND_TO, context)


fields = QgsFields()
fields.append(QgsField('MINX', QVariant.Double))
fields.append(QgsField('MINY', QVariant.Double))
Expand Down

0 comments on commit a6d9d26

Please sign in to comment.