Skip to content

Commit

Permalink
[processing] GDAL Rasterize: make extent parameter optional
Browse files Browse the repository at this point in the history
The corresponding -te parameter in gdal_rasterize is optional (if not specified, it defaults to the extent of the input vector layer)
  • Loading branch information
agiudiceandrea authored and github-actions[bot] committed Feb 8, 2022
1 parent 8ebb2ae commit e505b6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/gdal/rasterize.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def initAlgorithm(self, config=None):
minValue=0.0,
defaultValue=0.0))
self.addParameter(QgsProcessingParameterExtent(self.EXTENT,
self.tr('Output extent')))
self.tr('Output extent'),
optional=True))
nodataParam = QgsProcessingParameterNumber(self.NODATA,
self.tr('Assign a specified nodata value to output bands'),
type=QgsProcessingParameterNumber.Double,
Expand Down

0 comments on commit e505b6a

Please sign in to comment.