Skip to content

Commit

Permalink
make gdaltools clipper working with the raster provider
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15470 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Mar 13, 2011
1 parent b95d84c commit 057908f
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 057908f

Please sign in to comment.