Skip to content
Permalink
Browse files

[processing] Fix some missing references warnings

  • Loading branch information
nyalldawson committed May 29, 2018
1 parent aabbb30 commit 6bf5274b11b9542f6835e54a1075aa6f7967b827
@@ -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')
@@ -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:
@@ -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()
@@ -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)

@@ -27,6 +27,7 @@

import math

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

0 comments on commit 6bf5274

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