Skip to content

Commit

Permalink
make sure gdaltools input vector layers are ogr vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Sep 3, 2011
1 parent 372696e commit 4312197
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/GdalTools/tools/GdalTools_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ def getRasterLayers(self):
def isVector(self, layer):
if layer.type() != layer.VectorLayer:
return False
if layer.usesProvider() and layer.providerKey() != 'ogr':
return False
return True

def getVectorLayers(self):
Expand Down

0 comments on commit 4312197

Please sign in to comment.