Skip to content

Commit

Permalink
[processing] Fix some missing references warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 29, 2018
1 parent aabbb30 commit 6bf5274
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/gdaltindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def getConsoleCommands(self, parameters, context, feedback, executing=True):
arguments.append('-src_srs_name {}'.format(crs_field))

if crs_format:
arguments.append('-src_srs_format {}'.format(self.modes[crs_format][1]))
arguments.append('-src_srs_format {}'.format(self.formats[crs_format][1]))

if target_crs.isValid():
arguments.append('-t_srs')
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/Grass7Algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ def exportRasterLayer(self, grassName, fileName,
:param colorTable: preserve color Table.
:param outFormat: file format for export.
:param createOpt: creation options for format.
:param metatOpt: metadata options for export.
:param metaOpt: metadata options for export.
"""
if not createOpt:
if outFormat in Grass7Utils.GRASS_RASTER_FORMATS_CREATEOPTS:
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/DefineProjection.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def processAlgorithm(self, parameters, context, feedback):
with open(qpjFile, 'w') as f:
f.write(wkt)
else:
feedback.pushConsoleInfo(tr("Data source isn't a shapefile, skipping .prj/.qpj creation"))
feedback.pushConsoleInfo(self.tr("Data source isn't a shapefile, skipping .prj/.qpj creation"))

layer.setCrs(crs)
layer.triggerRepaint()
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/FieldsMapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def parameterAsFieldsMapping(self, parameters, name, context):
def prepareAlgorithm(self, parameters, context, feedback):
source = self.parameterAsSource(parameters, 'INPUT', context)
if source is None:
raise QgsProcessingException(self.invalidSourceError(parameters, self.INPUT))
raise QgsProcessingException(self.invalidSourceError(parameters, 'INPUT'))

mapping = self.parameterAsFieldsMapping(parameters, self.FIELDS_MAPPING, context)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import math

from qgis.PyQt.QtCore import QCoreApplication
from qgis.core import (QgsWkbTypes,
QgsFeature,
QgsFeatureSink,
Expand Down

0 comments on commit 6bf5274

Please sign in to comment.