File tree 1 file changed +5
-1
lines changed
python/plugins/processing/algs/r
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ def getExportCommands(self):
281
281
value = value + '.tif'
282
282
commands .append ('writeGDAL(' + out .name + ',"' + value
283
283
+ '")' )
284
- if isinstance (out , OutputVector ):
284
+ elif isinstance (out , OutputVector ):
285
285
value = out .value
286
286
if not value .endswith ('shp' ):
287
287
value = value + '.shp'
@@ -290,6 +290,10 @@ def getExportCommands(self):
290
290
filename = filename [:- 4 ]
291
291
commands .append ('writeOGR(' + out .name + ',"' + value + '","'
292
292
+ filename + '", driver="ESRI Shapefile")' )
293
+ elif isinstance (out , OutputTable ):
294
+ value = out .value
295
+ value = value .replace ('\\ ' , '/' )
296
+ commands .append ('write.csv(' + out .name + ',"' + value + '"' )
293
297
294
298
if self .showPlots :
295
299
commands .append ('dev.off()' )
You can’t perform that action at this time.
0 commit comments