Skip to content

Commit

Permalink
Update extractprojection.py
Browse files Browse the repository at this point in the history
indentation again...
  • Loading branch information
havatv committed Nov 2, 2018
1 parent 9c51f05 commit 566d572
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/algs/gdal/extractprojection.py
Expand Up @@ -94,8 +94,9 @@ def processAlgorithm(self, parameters, context, feedback):
raster = self.parameterAsRasterLayer(parameters, self.INPUT,
context)
if not raster.dataProvider().name() == 'gdal':
raise QgsProcessingException(self.tr('This algorithm can only '
'be used with GDAL raster layers'))
raise QgsProcessingException(self.tr('This algorithm can '
'only be used with '
'GDAL raster layers'))
rasterPath = raster.source()
rasterDS = gdal.Open(rasterPath, gdal.GA_ReadOnly)
geotransform = rasterDS.GetGeoTransform()
Expand Down

0 comments on commit 566d572

Please sign in to comment.