mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
fixed some PEP8 issues
This commit is contained in:
parent
8976f6822f
commit
681f73ae4e
@ -57,7 +57,8 @@ class ExtractProjection(GdalAlgorithm):
|
||||
self.addParameter(QgsProcessingParameterBoolean(
|
||||
self.PRJ_FILE_CREATE,
|
||||
self.tr('Create also .prj file'), False))
|
||||
self.addOutput(QgsProcessingOutputFile(self.WORLD_FILE,
|
||||
self.addOutput(QgsProcessingOutputFile(
|
||||
self.WORLD_FILE,
|
||||
self.tr('World file')))
|
||||
self.addOutput(QgsProcessingOutputFile(
|
||||
self.PRJ_FILE,
|
||||
@ -93,7 +94,7 @@ class ExtractProjection(GdalAlgorithm):
|
||||
raster = self.parameterAsRasterLayer(parameters, self.INPUT,
|
||||
context)
|
||||
if not raster.dataProvider().name() == 'gdal':
|
||||
raise QgsProcessingException('This algorithm can only '\
|
||||
raise QgsProcessingException('This algorithm can only '
|
||||
'be used with GDAL raster layers')
|
||||
rasterPath = raster.source()
|
||||
rasterDS = gdal.Open(rasterPath, gdal.GA_ReadOnly)
|
||||
|
Loading…
x
Reference in New Issue
Block a user