[processing] Fix some missing references warnings

This commit is contained in:
Nyall Dawson 2018-05-30 08:19:19 +10:00
parent aabbb307fa
commit 6bf5274b11
5 changed files with 5 additions and 4 deletions

View File

@ -150,7 +150,7 @@ class gdaltindex(GdalAlgorithm):
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')

View File

@ -738,7 +738,7 @@ class Grass7Algorithm(QgsProcessingAlgorithm):
: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:

View File

@ -90,7 +90,7 @@ class DefineProjection(QgisAlgorithm):
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()

View File

@ -82,7 +82,7 @@ class FieldsMapper(QgisFeatureBasedAlgorithm):
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)

View File

@ -27,6 +27,7 @@ __revision__ = '$Format:%H$'
import math
from qgis.PyQt.QtCore import QCoreApplication
from qgis.core import (QgsWkbTypes,
QgsFeature,
QgsFeatureSink,