Closed chadlawlis closed 8 years ago
Done via:
-- PULL IN SINGLE-RECORD BOUNDARIES FROM LANDS
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'alfl')
WHERE
unit_code = 'alfl';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'amis')
WHERE
unit_code = 'amis';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'arch')
WHERE
unit_code = 'arch';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'azru')
WHERE
unit_code = 'azru';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'band')
WHERE
unit_code = 'band';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'beol')
WHERE
unit_code = 'beol';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'bibe')
WHERE
unit_code = 'bibe';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'bica')
WHERE
unit_code = 'bica';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'bith')
WHERE
unit_code = 'bith';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'blca')
WHERE
unit_code = 'blca';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'brca')
WHERE
unit_code = 'brca';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'cach')
WHERE
unit_code = 'cach';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'cagr')
WHERE
unit_code = 'cagr';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'cany')
WHERE
unit_code = 'cany';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'care')
WHERE
unit_code = 'care';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'cave')
WHERE
unit_code = 'cave';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'cavo')
WHERE
unit_code = 'cavo';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'cebr')
WHERE
unit_code = 'cebr';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'cham')
WHERE
unit_code = 'cham';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'chcu')
WHERE
unit_code = 'chcu';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'chic')
WHERE
unit_code = 'chic';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'chir')
WHERE
unit_code = 'chir';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'colm')
WHERE
unit_code = 'colm';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'coro')
WHERE
unit_code = 'coro';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'cure')
WHERE
unit_code = 'cure';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'deto')
WHERE
unit_code = 'deto';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'dino')
WHERE
unit_code = 'dino';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'elma')
WHERE
unit_code = 'elma';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'elmo')
WHERE
unit_code = 'elmo';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'flfo')
WHERE
unit_code = 'flfo';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'fobo')
WHERE
unit_code = 'fobo';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'fobu')
WHERE
unit_code = 'fobu';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'foda')
WHERE
unit_code = 'foda';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'fola')
WHERE
unit_code = 'fola';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'foun')
WHERE
unit_code = 'foun';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'gicl')
WHERE
unit_code = 'gicl';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'glac')
WHERE
unit_code = 'glac';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'glca')
WHERE
unit_code = 'glca';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'gosp')
WHERE
unit_code = 'gosp';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'grca')
WHERE
unit_code = 'grca';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'grko')
WHERE
unit_code = 'grko';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'grte')
WHERE
unit_code = 'grte';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'gumo')
WHERE
unit_code = 'gumo';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'hove')
WHERE
unit_code = 'hove';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'hutr')
WHERE
unit_code = 'hutr';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'jodr')
WHERE
unit_code = 'jodr';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'lamr')
WHERE
unit_code = 'lamr';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'libi')
WHERE
unit_code = 'libi';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'lyjo')
WHERE
unit_code = 'lyjo';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'meve')
WHERE
unit_code = 'meve';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'moca')
WHERE
unit_code = 'moca';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'nabr')
WHERE
unit_code = 'nabr';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'nava')
WHERE
unit_code = 'nava';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'orpi')
WHERE
unit_code = 'orpi';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'paal')
WHERE
unit_code = 'paal';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'pais')
WHERE
unit_code = 'pais';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'peco')
WHERE
unit_code = 'peco';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'pefo')
WHERE
unit_code = 'pefo';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'petr')
WHERE
unit_code = 'petr';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'pisp')
WHERE
unit_code = 'pisp';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'rabr')
WHERE
unit_code = 'rabr';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'rigr')
WHERE
unit_code = 'rigr';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'romo')
WHERE
unit_code = 'romo';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'saan')
WHERE
unit_code = 'saan';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'sagu')
WHERE
unit_code = 'sagu';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'sand')
WHERE
unit_code = 'sand';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'sapu')
WHERE
unit_code = 'sapu';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'sucr')
WHERE
unit_code = 'sucr';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'tica')
WHERE
unit_code = 'tica';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'tont')
WHERE
unit_code = 'tont';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'tuma')
WHERE
unit_code = 'tuma';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'tuzi')
WHERE
unit_code = 'tuzi';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'waba')
WHERE
unit_code = 'waba';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'waca')
WHERE
unit_code = 'waca';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'whsa')
WHERE
unit_code = 'whsa';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'wupa')
WHERE
unit_code = 'wupa';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'yell')
WHERE
unit_code = 'yell';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'yuho')
WHERE
unit_code = 'yuho';
UPDATE
parks_poly
SET
geom_poly = (SELECT wkb_geometry FROM lands_20160107 WHERE unit_code = 'zion')
WHERE
unit_code = 'zion';
-- PULL MULTI-RECORD BOUNDARIES FROM LANDS USING ST_UNION
UPDATE
parks_poly
SET
geom_poly = (SELECT ST_Union(wkb_geometry) FROM lands_20160107 WHERE unit_code = 'grsa')
WHERE
unit_code = 'grsa';
-- UPDATE PARKS TABLE ATTRIBUTE DATA: DATA SOURCE AND UNIT AREA
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'alfl')
WHERE
unit_code = 'alfl';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'amis')
WHERE
unit_code = 'amis';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'arch')
WHERE
unit_code = 'arch';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'azru')
WHERE
unit_code = 'azru';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'band')
WHERE
unit_code = 'band';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'beol')
WHERE
unit_code = 'beol';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'bibe')
WHERE
unit_code = 'bibe';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'bica')
WHERE
unit_code = 'bica';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'bith')
WHERE
unit_code = 'bith';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'blca')
WHERE
unit_code = 'blca';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'brca')
WHERE
unit_code = 'brca';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'cach')
WHERE
unit_code = 'cach';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'cagr')
WHERE
unit_code = 'cagr';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'cany')
WHERE
unit_code = 'cany';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'care')
WHERE
unit_code = 'care';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'cave')
WHERE
unit_code = 'cave';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'cavo')
WHERE
unit_code = 'cavo';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'cebr')
WHERE
unit_code = 'cebr';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'cham')
WHERE
unit_code = 'cham';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'chcu')
WHERE
unit_code = 'chcu';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'chic')
WHERE
unit_code = 'chic';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'chir')
WHERE
unit_code = 'chir';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'colm')
WHERE
unit_code = 'colm';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'coro')
WHERE
unit_code = 'coro';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'cure')
WHERE
unit_code = 'cure';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'deto')
WHERE
unit_code = 'deto';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'dino')
WHERE
unit_code = 'dino';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'elma')
WHERE
unit_code = 'elma';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'elmo')
WHERE
unit_code = 'elmo';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'flfo')
WHERE
unit_code = 'flfo';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'fobo')
WHERE
unit_code = 'fobo';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'fobu')
WHERE
unit_code = 'fobu';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'foda')
WHERE
unit_code = 'foda';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'fola')
WHERE
unit_code = 'fola';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'foun')
WHERE
unit_code = 'foun';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'gicl')
WHERE
unit_code = 'gicl';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'glac')
WHERE
unit_code = 'glac';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'glca')
WHERE
unit_code = 'glca';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'gosp')
WHERE
unit_code = 'gosp';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'grca')
WHERE
unit_code = 'grca';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'grko')
WHERE
unit_code = 'grko';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'grsa')
WHERE
unit_code = 'grsa';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'grte')
WHERE
unit_code = 'grte';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'gumo')
WHERE
unit_code = 'gumo';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'hove')
WHERE
unit_code = 'hove';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'hutr')
WHERE
unit_code = 'hutr';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'jodr')
WHERE
unit_code = 'jodr';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'lamr')
WHERE
unit_code = 'lamr';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'libi')
WHERE
unit_code = 'libi';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'lyjo')
WHERE
unit_code = 'lyjo';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'meve')
WHERE
unit_code = 'meve';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'moca')
WHERE
unit_code = 'moca';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'nabr')
WHERE
unit_code = 'nabr';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'nava')
WHERE
unit_code = 'nava';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'orpi')
WHERE
unit_code = 'orpi';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'paal')
WHERE
unit_code = 'paal';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'pais')
WHERE
unit_code = 'pais';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'peco')
WHERE
unit_code = 'peco';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'pefo')
WHERE
unit_code = 'pefo';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'petr')
WHERE
unit_code = 'petr';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'pisp')
WHERE
unit_code = 'pisp';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'rabr')
WHERE
unit_code = 'rabr';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'rigr')
WHERE
unit_code = 'rigr';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'romo')
WHERE
unit_code = 'romo';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'saan')
WHERE
unit_code = 'saan';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'sagu')
WHERE
unit_code = 'sagu';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'sand')
WHERE
unit_code = 'sand';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'sapu')
WHERE
unit_code = 'sapu';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'sucr')
WHERE
unit_code = 'sucr';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'tica')
WHERE
unit_code = 'tica';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'tont')
WHERE
unit_code = 'tont';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'tuma')
WHERE
unit_code = 'tuma';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'tuzi')
WHERE
unit_code = 'tuzi';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'waba')
WHERE
unit_code = 'waba';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'waca')
WHERE
unit_code = 'waca';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'whsa')
WHERE
unit_code = 'whsa';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'wupa')
WHERE
unit_code = 'wupa';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'yell')
WHERE
unit_code = 'yell';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'yuho')
WHERE
unit_code = 'yuho';
UPDATE
parks
SET
data_source = 'Land Resources Division',
unit_area = (SELECT ST_Area(geom_poly) FROM parks_poly WHERE unit_code = 'zion')
WHERE
unit_code = 'zion';
At first glance everything seems to check out when viewed locally in QGIS, except for GRSA which suffered from the ST_Union between the Park and Preserve areas:
I'll open a separate issue and resolve this manually. Otherwise, should be all set here. Will close once tiles are regenerated.
Boundaries have been regenerated - these are now live.
There are currently 87 units with
unit_region = 'imr'
in ourparks
table:5 of these are National Trails, which are not included in Lands (and we currently do not have a label point
geom_point
or area boundarygeom_poly
for them):2 others are not currently included in Lands:
So, we will maintain the geometries for OKCI and WACO given they are not available in Lands.
I will update the remaining 80 units to pull from Lands, using the latest release from 20160107 (#362, though all newly updated boundaries in this release have already been updated in our
parks
table):Lands includes two boundaries for GRSA - one for the Park and another for the Preserve, which I will have to ST_Union together. Otherwise, it is 1 record per unit for each boundary.