Skip to content

Commit 4312197

Browse files
committed
make sure gdaltools input vector layers are ogr vectors
1 parent 372696e commit 4312197

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/plugins/GdalTools/tools/GdalTools_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ def getRasterLayers(self):
153153
def isVector(self, layer):
154154
if layer.type() != layer.VectorLayer:
155155
return False
156+
if layer.usesProvider() and layer.providerKey() != 'ogr':
157+
return False
156158
return True
157159

158160
def getVectorLayers(self):

0 commit comments

Comments
 (0)