Skip to content
Permalink
Browse files

make tools working with the raster provider

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15459 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler
brushtyler committed Mar 13, 2011
1 parent 8bfe746 commit 5968459d94c8912f1ed99cd30f8c80a9aceff531
@@ -89,7 +89,7 @@ def initGui( self ):
rasterText = QCoreApplication.translate( "QgisApp", "&Raster" )

for a in actions:
if a.menu().title() == rasterText:
if a.menu() != None and a.menu().title() == rasterText:
rasterMenu = a.menu()
break

@@ -22,7 +22,7 @@ def name():
def description():
return "Integrate gdal tools into qgis"
def version():
return "Version 1.2.20"
return "Version 1.2.21"
def qgisMinimumVersion():
return "1.0"
def icon():
@@ -98,7 +98,9 @@ def getRasterLayers():
layerMap = QgsMapLayerRegistry.instance().mapLayers()
for name, layer in layerMap.iteritems():
# only raster layers, but not WMS ones
if layer.type() == layer.RasterLayer and ( not layer.usesProvider() ):
if layer.type() == layer.RasterLayer:
if layer.usesProvider() and layer.providerKey() != 'gdal':
continue
layers[count] = layer
names.append(layer.name())
count = count +1

0 comments on commit 5968459

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