Generates dist files

This commit is contained in:
Javier Arce 2013-11-08 16:14:52 +01:00
parent c57472da78
commit 94578fa0a2
2 changed files with 30 additions and 23 deletions

2
dist/torque.js vendored

File diff suppressed because one or more lines are too long

View File

@ -972,8 +972,8 @@ exports.Profiler = Profiler;
getKeySpan: function() {
return {
start: this.options.start,
end: this.options.end,
start: this.options.start * 1000,
end: this.options.end * 1000,
step: this.options.step,
steps: this.options.steps
};
@ -1049,7 +1049,7 @@ exports.Profiler = Profiler;
max_col = format(max_tmpl, { column: self.options.column });
min_col = format(min_tmpl, { column: self.options.column });
var sql_stats = "" +
/*var sql_stats = "" +
"WITH summary_groups as ( " +
"WITH summary as ( " +
"select (row_number() over (order by __time_col asc nulls last)+1)/2 as rownum, __time_col " +
@ -1075,6 +1075,15 @@ exports.Profiler = Profiler;
"(a.max - a.min)/avg(diff) as num_steps " +
"FROM summary_groups, subq a " +
"WHERE diff > 0 group by xmax, xmin, ymax, ymin, max_date, min_date";
*/
var sql_stats = " SELECT " +
"st_xmax(st_envelope(st_collect(the_geom))) xmax, " +
"st_ymax(st_envelope(st_collect(the_geom))) ymax, " +
"st_xmin(st_envelope(st_collect(the_geom))) xmin, " +
"st_ymin(st_envelope(st_collect(the_geom))) ymin, " +
"count(*) as num_steps, " +
"{max_col} max_date, " +
"{min_col} min_date FROM ({sql}) __torque_wrap_sql ";
var sql = format(sql_stats, {
max_col: max_col,