Company
Date Published
July 4, 2024
Author
CARTO Contributors
Word count
1704
Language
English
Hacker News points
None

Summary

The new dynamic aggregation feature for CARTO's Engine allows users to group points spatially, reducing the number of points on maps and improving performance. This is achieved by clustering points into grid cells and replacing each cluster with a single point summarizing its group. Users can customize how their data is aggregated through the `aggregation` parameter in the MapConfig, which defines columns for aggregation and placement options such as centroid or point-grid generation. The feature also includes automatic aggregation when no explicit parameters are provided, using a random sample of points to represent each group. This allows users to visualize large datasets without requiring extensive customization. The new feature is available for both raster and vector tiles, with support for various aggregate functions, including sum, average, minimum, maximum, and mode.