Skip to content
Browse files
Fix bug in GDALTools Assign Projection
Assign Projection uses gdalwarp, and this works correctly when a raster has no CRS assigned, however, in the case of a raster with an incorrect CRS assignment, then gdalwarp will reproject the raster instead of simply changing the assigned CRS, propagating the error. Switching the Assign Projection tool to use gdal_translate provides the intended behaviour in all situations.
(cherry picked from commit bb81568)
  • Loading branch information
aharfoot authored and alexbruy committed Jun 29, 2016
1 parent efac2f7 commit 843d17e039bc7ad4bf963f017aae82c4dc61450f
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/GdalTools/tools/
@@ -42,7 +42,7 @@ def __init__(self, iface):
self.iface = iface

BaseBatchWidget.__init__(self, self.iface, "gdalwarp")
BaseBatchWidget.__init__(self, self.iface, "gdal_translate")


@@ -112,7 +112,7 @@ def fillDesiredSRSEdit(self):
def getArguments(self):
arguments = []
if self.desiredSRSEdit.text():
if self.batchCheck.isChecked():
return arguments

0 comments on commit 843d17e

Please sign in to comment.