Skip to content
Permalink
Browse files

Update extractprojection.py

indentation again...
  • Loading branch information
havatv committed Nov 2, 2018
1 parent 9c51f05 commit 566d5726d76af97c1410bc6a86357d37c14dad92
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/algs/gdal/extractprojection.py
@@ -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()

0 comments on commit 566d572

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