2018-10-24 21:42:33 +08:00
|
|
|
'use strict';
|
|
|
|
|
2015-05-13 21:15:53 +08:00
|
|
|
var ogr = require('./../ogr');
|
2013-05-16 17:24:52 +08:00
|
|
|
|
2014-08-03 02:27:05 +08:00
|
|
|
function CsvFormat() {}
|
2013-05-16 17:24:52 +08:00
|
|
|
|
2014-08-03 02:27:05 +08:00
|
|
|
CsvFormat.prototype = new ogr('csv');
|
2013-05-16 17:24:52 +08:00
|
|
|
|
2014-08-03 02:27:05 +08:00
|
|
|
CsvFormat.prototype._contentType = "text/csv; charset=utf-8; header=present";
|
|
|
|
CsvFormat.prototype._fileExtension = "csv";
|
2013-05-16 17:24:52 +08:00
|
|
|
|
2014-08-03 02:27:05 +08:00
|
|
|
CsvFormat.prototype.generate = function(options, callback) {
|
2013-11-15 20:24:48 +08:00
|
|
|
this.toOGR_SingleFile(options, 'CSV', callback);
|
2013-05-16 17:24:52 +08:00
|
|
|
};
|
|
|
|
|
2014-08-03 02:27:05 +08:00
|
|
|
module.exports = CsvFormat;
|