Add Survival Source

This commit is contained in:
Mike Simpson 2023-04-06 15:21:59 +01:00
parent d92456cdae
commit 07cb6b4846
3 changed files with 14 additions and 1 deletions

View File

@ -300,6 +300,10 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
edit: true, edit: true,
verify: true verify: true
}, },
survival_source: {
edit: true,
verify: true
},
likes_total: { likes_total: {
edit: false, edit: false,
derivedEdit: true, derivedEdit: true,

View File

@ -133,6 +133,14 @@ const LAYER_QUERIES = {
buildings buildings
WHERE WHERE
survival_status IS NOT NULL`, survival_status IS NOT NULL`,
survival_source: `
SELECT
geometry_id,
survival_source
FROM
buildings
WHERE
survival_source IS NOT NULL`,
likes: ` likes: `
SELECT SELECT
geometry_id, geometry_id,

View File

@ -57,7 +57,8 @@ COPY (SELECT
is_domestic, is_domestic,
community_type_worth_keeping_total, community_type_worth_keeping_total,
likes_total, likes_total,
survival_status survival_status,
survival_source
FROM buildings) FROM buildings)
TO '/tmp/building_attributes.csv' TO '/tmp/building_attributes.csv'
WITH CSV HEADER WITH CSV HEADER