Changes between Version 7 and Version 8 of UGA


Ignore:
Timestamp:
Jul 20, 2010 5:05:07 PM (15 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UGA

    v7 v8  
    2626 
    2727[[Image(source:data/Docs/trac/UGA/UGA 2010_L93.jpg,200px)]]  
     28 
     29= Correspondance UGA-CCM = 
     30{{{ 
     31     drop table  if exists uga2010.wso; 
     32     CREATE TABLE uga2010.wso ( 
     33     id serial PRIMARY KEY, 
     34     wso_id integer, 
     35     uga varchar(25) 
     36     ) 
     37 
     38--Loire 
     39    insert into uga2010.wso(wso_id)  
     40    select distinct on (wso_id)  wso_id from ccm21.riversegments r 
     41    join (SELECT ST_Union(f.the_geom) as singlegeom 
     42        FROM uga2010.uga As f where gid='1') as sub 
     43    ON ST_Intersects(sub.singlegeom,r.the_geom); 
     44 
     45    UPDATE uga2010.wso set uga='Loire' where uga IS NULL --40 sea nodes 
     46 
     47--Garonne 
     48    insert into uga2010.wso(wso_id)  
     49    select distinct on (wso_id)  wso_id from ccm21.riversegments r 
     50    join (SELECT ST_Union(f.the_geom) as singlegeom 
     51        FROM uga2010.uga As f where gid='2') as sub 
     52    ON ST_Intersects(sub.singlegeom,r.the_geom); 
     53 
     54    UPDATE uga2010.wso set uga='Garonne' where uga IS NULL --60 sea nodes 
     55 
     56--Adour 
     57    insert into uga2010.wso(wso_id)  
     58    select distinct on (wso_id)  wso_id from ccm21.riversegments r 
     59    join (SELECT ST_Union(f.the_geom) as singlegeom 
     60        FROM uga2010.uga As f where gid='3') as sub 
     61    ON ST_Intersects(sub.singlegeom,r.the_geom); 
     62 
     63    UPDATE uga2010.wso set uga='Adour' where uga IS NULL --19 sea nodes 
     64 
     65--Artois-Picardie 
     66    insert into uga2010.wso(wso_id)  
     67    select distinct on (wso_id)  wso_id from ccm21.riversegments r 
     68    join (SELECT ST_Union(f.the_geom) as singlegeom 
     69        FROM uga2010.uga As f where gid='4') as sub 
     70    ON ST_Intersects(sub.singlegeom,r.the_geom); 
     71 
     72    UPDATE uga2010.wso set uga='ArtoisPicardie' where uga IS NULL --40 sea nodes 
     73 
     74--Rhône-M‚diterranée 
     75    insert into uga2010.wso(wso_id)  
     76    select distinct on (wso_id)  wso_id from ccm21.riversegments r 
     77    join (SELECT ST_Union(f.the_geom) as singlegeom 
     78        FROM uga2010.uga As f where gid='5') as sub 
     79    ON ST_Intersects(sub.singlegeom,r.the_geom); 
     80 
     81    UPDATE uga2010.wso set uga='RhoneMediterranee' where uga IS NULL --40 sea nodes 
     82 
     83--Corse 
     84    insert into uga2010.wso(wso_id)  
     85    select distinct on (wso_id)  wso_id from ccm21.riversegments r 
     86    join (SELECT ST_Union(f.the_geom) as singlegeom 
     87        FROM uga2010.uga As f where gid='6') as sub 
     88    ON ST_Intersects(sub.singlegeom,r.the_geom); 
     89 
     90    UPDATE uga2010.wso set uga='Corse' where uga IS NULL --40 sea nodes 
     91 
     92--Seine-Normandie 
     93    insert into uga2010.wso(wso_id)  
     94    select distinct on (wso_id)  wso_id from ccm21.riversegments r 
     95    join (SELECT ST_Union(f.the_geom) as singlegeom 
     96        FROM uga2010.uga As f where gid='7') as sub 
     97    ON ST_Intersects(sub.singlegeom,r.the_geom); 
     98 
     99    UPDATE uga2010.wso set uga='Seine-Normandie' where uga IS NULL --40 sea nodes 
     100 
     101--Bretagne 
     102    insert into uga2010.wso(wso_id)  
     103    select distinct on (wso_id)  wso_id from ccm21.riversegments r 
     104    join (SELECT ST_Union(f.the_geom) as singlegeom 
     105        FROM uga2010.uga As f where gid='8') as sub 
     106    ON ST_Intersects(sub.singlegeom,r.the_geom); 
     107 
     108    UPDATE uga2010.wso set uga='Bretagne' where uga IS NULL --40 sea nodes 
     109 
     110--Rhin 
     111    insert into uga2010.wso(wso_id)  
     112    select distinct on (wso_id)  wso_id from ccm21.riversegments r 
     113    join (SELECT ST_Union(f.the_geom) as singlegeom 
     114        FROM uga2010.uga As f where gid='9') as sub 
     115    ON ST_Intersects(sub.singlegeom,r.the_geom); 
     116 
     117    UPDATE uga2010.wso set uga='Rhin' where uga IS NULL --40 sea nodes 
     118 
     119--Meuse 
     120 
     121    insert into uga2010.wso(wso_id)  
     122    select distinct on (wso_id)  wso_id from ccm21.riversegments r 
     123    join (SELECT ST_Union(f.the_geom) as singlegeom 
     124        FROM uga2010.uga As f where gid='10') as sub 
     125    ON ST_Intersects(sub.singlegeom,r.the_geom); 
     126 
     127    UPDATE uga2010.wso set uga='Meuse' where uga IS NULL --40 sea nodes 
     128}}} 
     129