mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[processing] fixed table export
This commit is contained in:
parent
c3914f0c40
commit
4ff831f995
@ -351,7 +351,7 @@ def exportTable(table):
|
||||
|
||||
settings = QSettings()
|
||||
systemEncoding = settings.value('/UI/encoding', 'System')
|
||||
output = getTempFilename('dbf')
|
||||
output = getTempFilename()
|
||||
provider = table.dataProvider()
|
||||
isASCII = True
|
||||
try:
|
||||
@ -367,7 +367,7 @@ def exportTable(table):
|
||||
for feat in table.getFeatures():
|
||||
writer.addFeature(feat)
|
||||
del writer
|
||||
return output
|
||||
return output + '.dbf'
|
||||
else:
|
||||
filename = unicode(table.source())
|
||||
if unicode(table.source()).endswith('shp'):
|
||||
|
@ -70,7 +70,7 @@ def setTempOutput(out, alg):
|
||||
out.value = getTempFilenameInTempFolder(out.name + '.' + ext)
|
||||
|
||||
|
||||
def getTempFilename(ext):
|
||||
def getTempFilename(ext = None):
|
||||
path = tempFolder()
|
||||
if ext is None:
|
||||
filename = path + os.sep + str(time.time()) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user