Skip to content

Commit

Permalink
[processing] fix r.tileset algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed May 24, 2020
1 parent 817f194 commit e014684
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/grass7/Grass7Algorithm.py
Expand Up @@ -42,6 +42,7 @@
QgsProcessingAlgorithm,
QgsProcessingParameterDefinition,
QgsProcessingException,
QgsProcessingParameterCrs,
QgsProcessingParameterExtent,
QgsProcessingParameterEnum,
QgsProcessingParameterNumber,
Expand Down Expand Up @@ -633,6 +634,9 @@ def processCommand(self, parameters, context, feedback, delOutputs=False):
continue
else:
value = '{},{}'.format(v[0], v[1])
elif isinstance(param, QgsProcessingParameterCrs):
if self.parameterAsCrs(parameters, paramName, context):
value = '"{}"'.format(self.parameterAsCrs(parameters, paramName, context).toProj())
# For everything else, we assume that it is a string
else:
value = '"{}"'.format(
Expand Down
Expand Up @@ -11,4 +11,4 @@ QgsProcessingParameterNumber|overlap|Number of cells tiles should overlap in eac
QgsProcessingParameterString|separator|Output field separator|pipe|False|True
*QgsProcessingParameterBoolean|-g|Produces shell script output|False
*QgsProcessingParameterBoolean|-w|Produces web map server query string output|False
QgsProcessingParameterFileDestination|output|Tileset|Txt files (*.txt)|None|False
QgsProcessingParameterFileDestination|html|Tileset|HTML files (*.html)|None|False

0 comments on commit e014684

Please sign in to comment.