Creating spatial index tilesets
Last updated
Was this helpful?
Was this helpful?
CALL carto.CREATE_SPATIAL_INDEX_TILESET(
'demo_tables.sub_carto_derived_spatialfeatures_gbr_quadgrid15_v1_yearly_v2',
'demo_tables.sub_carto_derived_spatialfeatures_gbr_quadgrid15_v1_yearly_v2_tileset',
'
{
"resolution_min": 2,
"resolution_max": 8,
"spatial_index_column": "quadbin:geoid",
"resolution": 15,
"aggregation_resolution": 4,
"properties": {
"population": {
"formula":"sum(population)",
"type":"Number"
}
}
}
'
);CALL carto.CREATE_SPATIAL_INDEX_TILESET(
'demo_tables.sub_carto_derived_spatialfeatures_gbr_h3res8_v1_yearly_v2',
'demo_tables.sub_carto_derived_spatialfeatures_gbr_h3res8_v1_yearly_v2_tileset',
'
{
"resolution_min": 1,
"resolution_max": 4,
"spatial_index_column": "h3:geoid",
"resolution": 8,
"aggregation_resolution": 4,
"properties": {
"population": {
"formula":"sum(population)",
"type":"Number"
}
}
}
'
);