Changes between Version 25 and Version 26 of CookBook join ROE_CCMv2
- Timestamp:
- Nov 27, 2010 10:30:48 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook join ROE_CCMv2
v25 v26 389 389 Manual addition of some dams. When checking the map. Some problems linked with ccm to bd_carthage correspondance appear.... 390 390 */ 391 alter table geobs2010.roe_ccm_500_final add column manual_insert integer;392 update geobs2010.roe_ccm_500_final set manual_insert=0;393 391 -- pour ressupprimer les id déjà rentrées si on ralonge la liste 394 392 -- delete from geobs2010.roe_ccm_500_final where ref_id in (11498); 395 insert into geobs2010.roe_ccm_500_final( 396 select distinct on(ref_id) ref_id, 393 -- ATTENTION LES COLONNES DOIVENT ETRE REINTEGREES AVEC LEUR NOM DONNEE INSERT INTO (A,B,C...) ! 394 insert into geobs2010.roe_ccm_500_final (ref_id, 395 gid, 396 id_trhyd, 397 dist_source_bdcar, 398 dist_source_ccm, 399 dist_sea_bdcar, 400 dist_sea_ccm, 401 strahler_bdcar, 402 strahler_ccm, 403 distproj_bdcar, 404 distproj_ccm, 405 height, 406 score, 407 nbdams, 408 the_geom, 409 manual_insert ) ( 410 select distinct on(ref_id) ref_id, 397 411 gid, 398 412 id_trhyd, … … 406 420 min(distproj_ccm) as distproj_ccm, 407 421 height, 408 409 422 score, 423 nbdams, 410 424 the_geom, 411 425 1 as manual_insert … … 415 429 group by ref_id, gid,id_trhyd,dist_source_bdcar,dist_source_ccm,dist_sea_bdcar,dist_sea_ccm,strahler_bdcar,strahler_ccm,distproj_bdcar,distproj_ccm, 416 430 the_geom,manual_insert,height,score,nbdams); 431 432 433 delete from geobs2010.roe_ccm_500_final where ref_id in (3652,23335,11879,23343,23351,23360,18820,23388,23365,18816,17954,18810,17958,18810,18810,18813,23368,3650,18809,3650,3650,23326,23332,3656); 417 434 418 435 }}}