mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] Fix some missing references warnings
This commit is contained in:
parent
aabbb307fa
commit
6bf5274b11
@ -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')
|
||||
|
@ -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:
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
||||
|
@ -27,6 +27,7 @@ __revision__ = '$Format:%H$'
|
||||
|
||||
import math
|
||||
|
||||
from qgis.PyQt.QtCore import QCoreApplication
|
||||
from qgis.core import (QgsWkbTypes,
|
||||
QgsFeature,
|
||||
QgsFeatureSink,
|
||||
|
Loading…
x
Reference in New Issue
Block a user