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