Commit daf4eb38 authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Added aggregated_buildings field to data_unit_tiles table

parent 659b27fd
Pipeline #38283 failed with stage
in 1 minute and 42 seconds
......@@ -57,17 +57,18 @@ Data-unit tiles result from the intersection of data units with zoom level 18 qu
Consequently, the primary key of this table consists of four fields: `quadkey`,
`aggregated_source_id`, `occupancy_case` and `data_unit_id`.
| column name | data type | description |
|-----------------------------------|---------------|-----------------------------------------------------------------------|
| quadkey | char(18) | Zoom level 18 tile identifier. |
| aggregated_source_id | smallint | Identifier of the source of the aggregated model. |
| occupancy_case | occupancycase | See [personalised enumerated types](#personalised-enumerated-types). |
| exposure_entity | char(3) | Identifier of the exposure entity. If a country, ISO3 code. |
| data_unit_id | varchar | Identifier of the data unit. |
| size_data_unit_tile_area | float | Area of the data-unit tile, in m2. |
| size_data_unit_tile_built_up_area | float | Built-up area within the data-unit tile, in m2. |
| fraction_data_unit_area | float | `size_data_unit_tile_area` / area of the data unit. |
| fraction_data_unit_built_up_area | float | `size_data_unit_tile_built_up_area` / built-up area of the data unit. |
| column name | data type | description |
|-----------------------------------|---------------|------------------------------------------------------------------------------------------------------------|
| quadkey | char(18) | Zoom level 18 tile identifier. |
| aggregated_source_id | smallint | Identifier of the source of the aggregated model. |
| occupancy_case | occupancycase | See [personalised enumerated types](#personalised-enumerated-types). |
| exposure_entity | char(3) | Identifier of the exposure entity. If a country, ISO3 code. |
| data_unit_id | varchar | Identifier of the data unit. |
| size_data_unit_tile_area | float | Area of the data-unit tile, in m2. |
| size_data_unit_tile_built_up_area | float | Built-up area within the data-unit tile, in m2. |
| fraction_data_unit_area | float | `size_data_unit_tile_area` / area of the data unit. |
| fraction_data_unit_built_up_area | float | `size_data_unit_tile_built_up_area` / built-up area of the data unit. |
| aggregated_buildings | float | Number of buildings from (`aggregated_source_id`, `occupancy_case`, `data_unit_id`) in the data-unit tile. |
#### `data_units_buildings` - Information about buildings in a data unit
......
ALTER TABLE public.data_unit_tiles ADD COLUMN aggregated_buildings FLOAT;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment