Implmented for placements: centroid, point-gird, point-sample. Aggregated columns not yet implemented (only count). Aggregation could be made more efficient by using quadkeys
16 lines
425 B
JavaScript
16 lines
425 B
JavaScript
const BaseAggregation = require('./base-aggregation');
|
|
const aggregationTemplate = require('./aggregation-templates');
|
|
|
|
module.exports = class VectorAggregation extends BaseAggregation {
|
|
constructor () {
|
|
super(...arguments);
|
|
}
|
|
sql () {
|
|
return aggregationTemplate(this)({
|
|
sourceQuery: this.query,
|
|
res: this.resolution,
|
|
columns: this.columns
|
|
});
|
|
}
|
|
};
|