Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 committed Mar 13, 2011
1 parent 63a41df commit 6d06ec3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion python/plugins/GdalTools/__init__.py
Expand Up @@ -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():
Expand Down
14 changes: 8 additions & 6 deletions python/plugins/GdalTools/tools/doClipper.py
Expand Up @@ -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()
Expand Down

0 comments on commit 6d06ec3

Please sign in to comment.