Skip to content
Browse files

fixed #6127

git-svn-id: 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed Aug 1, 2012
1 parent e077b48 commit 209c7d1b597c4945bfb7bc9df9f5f9e2730ec17c
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/sextante/core/
@@ -35,15 +35,15 @@ def exportVectorLayer(layer):
del writer
return output
if (not str(layer.source()).endswith("shp")):
if (not unicode(layer.source()).endswith("shp")):
writer = QgsVectorFileWriter( output, systemEncoding,provider.fields(), provider.geometryType(), )
feat = QgsFeature()
while provider.nextFeature(feat):
del writer
return output
return str(layer.source())
return unicode(layer.source())

@@ -58,10 +58,10 @@ def exportRasterLayer(layer):
app uses GDAL to read the layer'''
exts = GdalUtils.getSupportedRasterExtensions()
for ext in exts:
if (str(layer.source()).endswith(ext)):
return str(layer.source())
if (unicode(layer.source()).endswith(ext)):
return unicode(layer.source())

#TODO:Do the conversion here
return str(layer.source())
return unicode(layer.source())

0 comments on commit 209c7d1

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