Changes between Version 15 and Version 16 of CookBook RHT_UGA
- Timestamp:
- Oct 3, 2012 4:52:30 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook RHT_UGA
v15 v16 23 23 ON ST_Intersects(sub.singlegeom,r.the_geom); 24 24 25 UPDATE uga2010.id_drain set uga='Bretagne' where uga IS NULL --6468 li gnes25 UPDATE uga2010.id_drain set uga='Bretagne' where uga IS NULL --6468 lines 26 26 27 27 … … 33 33 ON ST_Intersects(sub.singlegeom,r.the_geom); 34 34 35 UPDATE uga2010.id_drain set uga='Loire' where uga IS NULL --27746 li gnes35 UPDATE uga2010.id_drain set uga='Loire' where uga IS NULL --27746 lines 36 36 37 37 --Garonne … … 42 42 ON ST_Intersects(sub.singlegeom,r.the_geom); 43 43 44 UPDATE uga2010.id_drain set uga='Garonne' where uga IS NULL --19651 li gnes44 UPDATE uga2010.id_drain set uga='Garonne' where uga IS NULL --19651 lines 45 45 46 46 … … 52 52 ON ST_Intersects(sub.singlegeom,r.the_geom); 53 53 54 UPDATE uga2010.id_drain set uga='Adour' where uga IS NULL --3891 li gnes54 UPDATE uga2010.id_drain set uga='Adour' where uga IS NULL --3891 lines 55 55 56 56 --Artois-Picardie … … 61 61 ON ST_Intersects(sub.singlegeom,r.the_geom); 62 62 63 UPDATE uga2010.id_drain set uga='Artois-Picardie' where uga IS NULL --4061 li gnes63 UPDATE uga2010.id_drain set uga='Artois-Picardie' where uga IS NULL --4061 lines 64 64 65 65 --Rhône-Méditerranée … … 70 70 ON ST_Intersects(sub.singlegeom,r.the_geom); 71 71 72 UPDATE uga2010.id_drain set uga='RhoneMediterranee' where uga IS NULL --24999 li gnes72 UPDATE uga2010.id_drain set uga='RhoneMediterranee' where uga IS NULL --24999 lines 73 73 74 74 --Corse … … 79 79 ON ST_Intersects(sub.singlegeom,r.the_geom); 80 80 81 UPDATE uga2010.id_drain set uga='Corse' where uga IS NULL --1772 li gnes81 UPDATE uga2010.id_drain set uga='Corse' where uga IS NULL --1772 lines 82 82 83 83 … … 89 89 ON ST_Intersects(sub.singlegeom,r.the_geom); 90 90 91 UPDATE uga2010.id_drain set uga='Seine-Normandie' where uga IS NULL --19525 li gnes91 UPDATE uga2010.id_drain set uga='Seine-Normandie' where uga IS NULL --19525 lines 92 92 93 93 --Rhin … … 98 98 ON ST_Intersects(sub.singlegeom,r.the_geom); 99 99 100 UPDATE uga2010.id_drain set uga='Rhin' where uga IS NULL --4773 li gnes100 UPDATE uga2010.id_drain set uga='Rhin' where uga IS NULL --4773 lines 101 101 102 102 --Meuse … … 107 107 ON ST_Intersects(sub.singlegeom,r.the_geom); 108 108 109 UPDATE uga2010.id_drain set uga='Meuse' where uga IS NULL --1630 li gnes109 UPDATE uga2010.id_drain set uga='Meuse' where uga IS NULL --1630 lines 110 110 111 111 CREATE INDEX indexugaid_drain … … 116 116 {{{ 117 117 #!sql 118 insert into uga2010.id_drain(gid,id_drain,uga) values ('3067','3224','Rhone-Mediterranee'),('11638','11467','Rhone-Mediterranee'),('22455','22419','Rhone-Mediterranee'),('24629','24470','Corse'),('26919','26772','Corse'),('71671','501772','Rhin'); -- 6 li gnes118 insert into uga2010.id_drain(gid,id_drain,uga) values ('3067','3224','Rhone-Mediterranee'),('11638','11467','Rhone-Mediterranee'),('22455','22419','Rhone-Mediterranee'),('24629','24470','Corse'),('26919','26772','Corse'),('71671','501772','Rhin'); -- 6 lines 119 119 insert into uga2010.id_drain(gid,id_drain) values ('51479','301049'),('53501','303129'),('53521','303155'),('53471','303111'),('53481','303125'),('53531','303174'),('53571','303204'),('53695','303128'),('53710','303381'),('54108','303716'),('55321','304896'),('56267','305902'),('56268','305940'),('57509','307077'),('57623','307258'),('57860','307371'),('61605','311335'),('61606','311248'),('61639','311340'),('61759','311471'),('61766','311476'),('61767','311394'),('61885','311500'),('61904','311604'),('61922','311676'),('61924','311490'),('61925','311640'),('61939','311667'); 120 UPDATE uga2010.id_drain set uga='Seine-Normandie' where uga IS NULL; --28 li gnes121 122 delete from uga2010.id_drain where id_drain in ('30032','30036','30035','30040','6019','5959','2246'); -- 7 li gnes120 UPDATE uga2010.id_drain set uga='Seine-Normandie' where uga IS NULL; --28 lines 121 122 delete from uga2010.id_drain where id_drain in ('30032','30036','30035','30040','6019','5959','2246'); -- 7 lines 123 123 124 124 alter table uga2010.id_drain rename to id_drain_uga