diff --git a/maintenance/extract_data/README.txt b/maintenance/extract_data/README.txt index 6e9cb75a..ba2c8e70 100644 --- a/maintenance/extract_data/README.txt +++ b/maintenance/extract_data/README.txt @@ -41,6 +41,7 @@ This is the main table, containing almost all data collected by Colouring London - `location_postcode`: postcode - `location_latitude`: latitude - `location_longitude`: longitude +- `building_attachment_form`: building attachment form - `date_year`: year built - `date_lower`: lower bound on year built - `date_upper`: upper bound on year built @@ -59,7 +60,9 @@ This is the main table, containing almost all data collected by Colouring London - `size_floor_area_ground`: ground floor floor area in square metres - `size_floor_area_total`: total floor area in square metres - `size_width_frontage`: width of frontage in metres -- `likes_total`: number of times the building has been liked by Colouring London users +- `sust_breeam_rating`: BREEAM rating +- `sust_dec`: DEC rating +- `sust_retrofit_date`: year of last significant retrofit - `planning_portal_link`: link to an entry on https://www.planningportal.co.uk/ - `planning_in_conservation_area`: in a conservation area? (True/False) - `planning_conservation_area_name`: conservation area name @@ -78,6 +81,7 @@ This is the main table, containing almost all data collected by Colouring London - `planning_local_list_url`: local list reference link - `planning_in_historic_area_assessment`: within a historic area assessment? (True/False) - `planning_historic_area_assessment_url`: historic area assessment reference link +- `likes_total`: number of times the building has been liked by Colouring London users ## Building UPRNs diff --git a/maintenance/extract_data/export_attributes.sql b/maintenance/extract_data/export_attributes.sql index 7174a0d2..c8256e04 100644 --- a/maintenance/extract_data/export_attributes.sql +++ b/maintenance/extract_data/export_attributes.sql @@ -11,6 +11,7 @@ COPY (SELECT location_postcode, location_latitude, location_longitude, + building_attachment_form, date_year, date_lower, date_upper, @@ -29,7 +30,9 @@ COPY (SELECT size_floor_area_ground, size_floor_area_total, size_width_frontage, - likes_total, + sust_breeam_rating, + sust_dec, + sust_retrofit_date, planning_portal_link, planning_in_conservation_area, planning_conservation_area_name, @@ -47,7 +50,8 @@ COPY (SELECT planning_in_local_list, planning_local_list_url, planning_in_historic_area_assessment, - planning_historic_area_assessment_url + planning_historic_area_assessment_url, + likes_total FROM buildings) TO '/tmp/building_attributes.csv' WITH CSV HEADER