make gdaltools clipper working with the raster provider

git-svn-id: http://svn.osgeo.org/qgis/trunk@15470 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
brushtyler 2011-03-13 23:46:37 +00:00
parent 63a41df844
commit 6d06ec30b3
2 changed files with 8 additions and 6 deletions

View File

@ -22,7 +22,7 @@ def name():
def description():
return "Integrate gdal tools into qgis"
def version():
return "Version 1.2.21"
return "Version 1.2.22"
def qgisMinimumVersion():
return "1.0"
def icon():

View File

@ -59,12 +59,14 @@ class GdalToolsDialog(QWidget, Ui_Widget, BasePluginWidget):
for i in range(self.canvas.layerCount()-1, -1, -1):
layer = self.canvas.layer(i)
# only raster layers, but not WMS ones
if layer.type() == layer.RasterLayer and ( not layer.usesProvider() ):
# do not use the output file as input
if layer.source() == self.outputFileEdit.text():
continue
if layer.type() == layer.RasterLayer:
if layer.usesProvider() and layer.providerKey() != 'gdal':
continue
self.inputFiles << layer.source()
# do not use the output file as input
if layer.source() == self.outputFileEdit.text():
continue
self.inputFiles << layer.source()
if self.inputFiles.isEmpty():
self.extentSelector.stop()