CartoDB-SQL-API/app/models/formats/ogr/csv.js

15 lines
365 B
JavaScript
Raw Normal View History

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) {
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;