Skip to content
Permalink
Browse files

fix keyword

  • Loading branch information
raymondnijssen authored and m-kuhn committed Apr 30, 2019
1 parent 052db03 commit a6d9d26e7da6eb256b0e6216c0a1cd79b365582b
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/algs/qgis/ExtentFromLayer.py
@@ -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')
@@ -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))
@@ -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))

0 comments on commit a6d9d26

Please sign in to comment.
You can’t perform that action at this time.