IagoLast
3850bbb68e
Send dates as unix epoch instead strings in .mvt files
...
This commit creates a new ConfigAdapter used in vector maps instantiations.
This adapter generates a new sql query for ONE SINGLE LAYER (carto-vl currently only supports one layer per mvt)
where the date columns are wrapped into a epoch using the `date_part` function.
Due this mvt files are smaller since we use numbers instead strings to represent dates, this is also faster in carto-gl
where we interpolate linearly between 0 and 1 to create animations.
Notice we should add a parameter to make this transformation optional.
We also should take into account the epoch precission.
2018-05-31 17:49:40 +02:00
Raul Marin
8012d76b68
Timeseries: Avoid collisions with columns named 'timestamp'
2017-12-22 15:58:40 +01:00
Raul Marin
418f5faa11
Date histogram: Reduce the threshold to change in auto mode to 100
2017-12-19 12:09:14 +01:00
Raul Marin
bba6db9dbf
Date histogram: Add second, decade, century and millenium aggregations
2017-12-19 12:09:14 +01:00
Raul Marin
7c5b7641d8
Date histogram: Add missing GROUP BY column
2017-12-11 11:27:13 +01:00
Raul Marin
1b405e42c2
Date histogram optimizations
2017-12-11 11:27:13 +01:00
Raul Marin
088a8b81a6
Timeseries tests: Set timestamps to the start of the aggregations
...
Also, increase the end of the range check so it includes some data
2017-12-11 11:27:13 +01:00
Daniel García Aubert
4a89ad57d7
Remove '_' as prefix for template's context properties
2017-09-12 13:05:46 +02:00
Daniel García Aubert
2576c3e7d5
Rename _shouldOverrideRange & _shouldOverrideBins methods
2017-09-12 10:14:55 +02:00
Daniel García Aubert
3a936474cf
Fix bad merge with master
2017-09-11 19:48:46 +02:00
Daniel García Aubert
9aa5a9e850
Improve comment
2017-09-11 19:26:28 +02:00
Daniel García Aubert
e3bffcd39d
Use inline functions to filter desired fields of the row
2017-09-11 19:24:01 +02:00
Daniel García Aubert
ee43378c68
Use arrow function
2017-09-11 19:09:05 +02:00
Daniel García Aubert
09981c2560
Extract method to check valid aggregation
2017-09-11 18:57:16 +02:00
Daniel García Aubert
fd9534797c
Minor refactors
2017-09-11 18:44:14 +02:00
Daniel García Aubert
38e7e71328
Implement template method pattern to format histogram query output
2017-09-11 17:19:02 +02:00
Daniel García Aubert
ec23bfc79b
Rename HistogramBase by BaseHistogram
2017-09-11 13:54:46 +02:00
Simon
d75ee965ae
changing some 'var' to 'let/const'
2017-09-11 11:48:33 +02:00
Simon
5e9b2e45c7
creating HistogramBase with the common functions of NumericHistogram and DateHistogram
2017-09-11 11:32:20 +02:00