| 641 | The gid's are needed to work the ccm21.upstream(_gid) function. Here is how we integrate them in the table |
| 642 | {{{ |
| 643 | #!sql |
| 644 | alter table clc.surf_area_ireland_final add column gid integer; |
| 645 | alter table clc.surf_area_ireland_final add constraint c_uk_gid unique(gid); |
| 646 | update clc.surf_area_ireland_final set gid=riversegments.gid |
| 647 | from ccm21.riversegments where riversegments.wso1_id=surf_area_ireland_final.wso1_id; --9064 |
| 648 | |
| 649 | select count(*) from clc.surf_area_ireland_final; --10035 |
| 650 | }}} |