Creating spatial index tilesets
Last updated
Was this helpful?
Was this helpful?
CALL `carto-un`.carto.CREATE_SPATIAL_INDEX_TILESET(
"carto-data.ac_7xhfwyml.sub_carto_derived_spatialfeatures_gbr_quadgrid15_v1_yearly_v2",
"my_project.my_dataset.uk_spatial_features_tileset_quadbin",
'''
{
"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-un-eu`.carto.CREATE_SPATIAL_INDEX_TILESET(
"carto-data.ac_7xhfwyml.sub_carto_derived_spatialfeatures_gbr_quadgrid15_v1_yearly_v2",
"my_project.my_dataset.uk_spatial_features_tileset_quadbin",
'''
{
"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(
"carto-data.ac_7xhfwyml.sub_carto_derived_spatialfeatures_gbr_quadgrid15_v1_yearly_v2",
"my_project.my_dataset.uk_spatial_features_tileset_quadbin",
'''
{
"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-un`.carto.CREATE_SPATIAL_INDEX_TILESET(
"carto-data.ac_7xhfwyml.sub_carto_derived_spatialfeatures_gbr_h3res8_v1_yearly_v2",
"my_project.my_dataset.uk_spatial_features_tileset_h3",
'''
{
"resolution_min": 1,
"resolution_max": 4,
"spatial_index_column": "h3:geoid",
"resolution": 8,
"aggregation_resolution": 4,
"properties": {
"population": {
"formula":"sum(population)",
"type":"Number"
}
}
}
'''
);CALL `carto-un-eu`.carto.CREATE_SPATIAL_INDEX_TILESET(
"carto-data.ac_7xhfwyml.sub_carto_derived_spatialfeatures_gbr_h3res8_v1_yearly_v2",
"my_project.my_dataset.uk_spatial_features_tileset_h3",
'''
{
"resolution_min": 1,
"resolution_max": 4,
"spatial_index_column": "h3:geoid",
"resolution": 8,
"aggregation_resolution": 4,
"properties": {
"population": {
"formula":"sum(population)",
"type":"Number"
}
}
}
'''
);CALL carto.CREATE_SPATIAL_INDEX_TILESET(
"carto-data.ac_7xhfwyml.sub_carto_derived_spatialfeatures_gbr_h3res8_v1_yearly_v2",
"my_project.my_dataset.uk_spatial_features_tileset_h3",
'''
{
"resolution_min": 1,
"resolution_max": 4,
"spatial_index_column": "h3:geoid",
"resolution": 8,
"aggregation_resolution": 4,
"properties": {
"population": {
"formula":"sum(population)",
"type":"Number"
}
}
}
'''
);