CartoDB-SQL-API/app/models/formats/kml.js

18 lines
382 B
JavaScript
Raw Normal View History

var ogr = require('./ogr');
2013-05-16 17:24:52 +08:00
function kml() {}
2013-05-16 17:24:52 +08:00
kml.prototype = new ogr('kml');
2013-05-16 17:24:52 +08:00
var p = kml.prototype;
2013-05-16 17:24:52 +08:00
p._contentType = "application/kml; charset=utf-8";
p._fileExtension = "kml";
2013-05-16 17:24:52 +08:00
p.generate = function(options, callback) {
2013-05-16 17:24:52 +08:00
var o = options;
this.toOGR_SingleFile(o.database, o.user_id, o.gn, o.sql, o.skipfields, 'KML', 'kml', callback);
2013-05-16 17:24:52 +08:00
};
module.exports = kml;