Skip to content

Commit 057908f

Browse files
author
brushtyler
committed
make gdaltools clipper working with the raster provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15470 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent b95d84c commit 057908f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

python/plugins/GdalTools/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def name():
2222
def description():
2323
return "Integrate gdal tools into qgis"
2424
def version():
25-
return "Version 1.2.21"
25+
return "Version 1.2.22"
2626
def qgisMinimumVersion():
2727
return "1.0"
2828
def icon():

python/plugins/GdalTools/tools/doClipper.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ def fillInputFiles(self):
5959
for i in range(self.canvas.layerCount()-1, -1, -1):
6060
layer = self.canvas.layer(i)
6161
# only raster layers, but not WMS ones
62-
if layer.type() == layer.RasterLayer and ( not layer.usesProvider() ):
63-
# do not use the output file as input
64-
if layer.source() == self.outputFileEdit.text():
65-
continue
66-
67-
self.inputFiles << layer.source()
62+
if layer.type() == layer.RasterLayer:
63+
if layer.usesProvider() and layer.providerKey() != 'gdal':
64+
continue
65+
66+
# do not use the output file as input
67+
if layer.source() == self.outputFileEdit.text():
68+
continue
69+
self.inputFiles << layer.source()
6870

6971
if self.inputFiles.isEmpty():
7072
self.extentSelector.stop()

0 commit comments

Comments
 (0)