Add sustainability and type fields to bulk extract

This commit is contained in:
Maciej Ziarkowski 2019-10-03 06:29:26 +01:00
parent 72d839ecdc
commit 0bf4edd2c8
2 changed files with 11 additions and 3 deletions

View File

@ -41,6 +41,7 @@ This is the main table, containing almost all data collected by Colouring London
- `location_postcode`: postcode - `location_postcode`: postcode
- `location_latitude`: latitude - `location_latitude`: latitude
- `location_longitude`: longitude - `location_longitude`: longitude
- `building_attachment_form`: building attachment form
- `date_year`: year built - `date_year`: year built
- `date_lower`: lower bound on year built - `date_lower`: lower bound on year built
- `date_upper`: upper 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_ground`: ground floor floor area in square metres
- `size_floor_area_total`: total floor area in square metres - `size_floor_area_total`: total floor area in square metres
- `size_width_frontage`: width of frontage in 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_portal_link`: link to an entry on https://www.planningportal.co.uk/
- `planning_in_conservation_area`: in a conservation area? (True/False) - `planning_in_conservation_area`: in a conservation area? (True/False)
- `planning_conservation_area_name`: conservation area name - `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_local_list_url`: local list reference link
- `planning_in_historic_area_assessment`: within a historic area assessment? (True/False) - `planning_in_historic_area_assessment`: within a historic area assessment? (True/False)
- `planning_historic_area_assessment_url`: historic area assessment reference link - `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 ## Building UPRNs

View File

@ -11,6 +11,7 @@ COPY (SELECT
location_postcode, location_postcode,
location_latitude, location_latitude,
location_longitude, location_longitude,
building_attachment_form,
date_year, date_year,
date_lower, date_lower,
date_upper, date_upper,
@ -29,7 +30,9 @@ COPY (SELECT
size_floor_area_ground, size_floor_area_ground,
size_floor_area_total, size_floor_area_total,
size_width_frontage, size_width_frontage,
likes_total, sust_breeam_rating,
sust_dec,
sust_retrofit_date,
planning_portal_link, planning_portal_link,
planning_in_conservation_area, planning_in_conservation_area,
planning_conservation_area_name, planning_conservation_area_name,
@ -47,7 +50,8 @@ COPY (SELECT
planning_in_local_list, planning_in_local_list,
planning_local_list_url, planning_local_list_url,
planning_in_historic_area_assessment, planning_in_historic_area_assessment,
planning_historic_area_assessment_url planning_historic_area_assessment_url,
likes_total
FROM buildings) FROM buildings)
TO '/tmp/building_attributes.csv' TO '/tmp/building_attributes.csv'
WITH CSV HEADER WITH CSV HEADER