Skip to content

Commit

Permalink
fixed #6127
Browse files Browse the repository at this point in the history
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@325 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed Aug 1, 2012
1 parent e077b48 commit 209c7d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sextante/core/LayerExporter.py
Expand Up @@ -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())



Expand All @@ -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.