mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
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:
parent
63a41df844
commit
6d06ec30b3
@ -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 @@ 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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user