Skip to content
Permalink
Browse files

fixed #6127

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@325 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf
volayaf committed Aug 1, 2012
1 parent e077b48 commit 209c7d1b597c4945bfb7bc9df9f5f9e2730ec17c
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/sextante/core/LayerExporter.py
@@ -35,15 +35,15 @@ def exportVectorLayer(layer):
del writer
return output
else:
if (not str(layer.source()).endswith("shp")):
if (not unicode(layer.source()).endswith("shp")):
writer = QgsVectorFileWriter( output, systemEncoding,provider.fields(), provider.geometryType(), provider.crs() )
feat = QgsFeature()
while provider.nextFeature(feat):
writer.addFeature(feat)
del writer
return output
else:
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.