| 77 | ----Germany |
| 78 | insert into europe.wso(wso_id) |
| 79 | select distinct on (wso_id) wso_id from ccm21.riversegments r |
| 80 | join (SELECT ST_Union(f.the_geom) as singlegeom |
| 81 | FROM europe.limiteeurope As f where gid='12') as sub |
| 82 | ON ST_Intersects(sub.singlegeom,r.the_geom); |
| 83 | |
| 84 | UPDATE europe.wso set area='Germany' where area IS NULL |
| 85 | |
| 86 | ----Spain (+Gibraltar) |
| 87 | insert into europe.wso(wso_id) |
| 88 | select distinct on (wso_id) wso_id from ccm21.riversegments r |
| 89 | join (SELECT ST_Union(f.the_geom) as singlegeom |
| 90 | FROM europe.limiteeurope As f where gid='37' or gid='13') as sub |
| 91 | ON ST_Intersects(sub.singlegeom,r.the_geom); |
| 92 | |
| 93 | UPDATE europe.wso set area='Spain' where area IS NULL |
| 94 | |
| 95 | ----Italy (+ |
| 96 | |