Skip to content
Permalink
Browse files

make gdaltools clipper working with the raster provider

git-svn-id: http://svn.osgeo.org/qgis/trunk@15470 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler
brushtyler committed Mar 13, 2011
1 parent 63a41df commit 6d06ec30b37d8beba208eba161077d6d8c85aacb
Showing with 9 additions and 7 deletions.
  1. +1 −1 python/plugins/GdalTools/__init__.py
  2. +8 −6 python/plugins/GdalTools/tools/doClipper.py
@@ -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():
@@ -59,12 +59,14 @@ def fillInputFiles(self):
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

self.inputFiles << layer.source()
if layer.type() == layer.RasterLayer:
if layer.usesProvider() and layer.providerKey() != 'gdal':
continue

# 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()

0 comments on commit 6d06ec3

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