Changes between Version 63 and Version 64 of Noeud - parcours RHT


Ignore:
Timestamp:
Oct 3, 2012 4:56:56 PM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Noeud - parcours RHT

    v63 v64  
    9393update rht.rhtvs2 SET nextdownid=id_drainaval from rht.fromnodetonodevs2 ft where id_drain=ft.id_drainamont; 
    9494 
    95 select  * from rht.rhtvs2 where id_drain=nextdownid --0lignes 
    96 update rht.rhtvs2 set nextdownid=-9999 where id_drain=nextdownid --0 lignes 
     95select  * from rht.rhtvs2 where id_drain=nextdownid --0 lines 
     96update rht.rhtvs2 set nextdownid=-9999 where id_drain=nextdownid --0 lines 
    9797 
    9898select * from rht.rhtvs2 where noeudmer='t' ---nextdownid null 
    99 update rht.rhtvs2 set nextdownid=-9999 where noeudmer='t' --1082 lignes 
     99update rht.rhtvs2 set nextdownid=-9999 where noeudmer='t' --1082 lines 
    100100}}} 
    101101 
     
    108108select id_drain from rht.rhtvs2 except ( 
    109109select rt2.id_drain from rht.rhtvs2 rt1 join rht.rhtvs2 rt2 on rt1.nextdownid=rt2.id_drain) 
    110 );-- 57493 lignes 
     110);-- 57493 lines 
    111111}}} 
    112112 
     
    142142select distance,id_drain from rht.temp_ltree_distance) as sub 
    143143where t.id_drain=sub.id_drain 
    144 and dmer is null;  --114564 lignes 
     144and dmer is null;  --114564 lines 
    145145}}} 
    146146[[Image(source:data/Docs/trac/rht/dmervs2.jpg,400px)]]  
     
    154154join  rht.noeudmervs2 n on st_intersects(p.the_geom,n.the_geom)) s 
    155155where s.id_drain=n.id_drain; -- 1082 
    156 update rht.noeudmervs2 set zonegeo='Golfe de Gascogne' where zonegeo='Biscaye';  --188 lignes 
    157 select * from rht.noeudmervs2 where zonegeo is null; -- zero lignes 
     156update rht.noeudmervs2 set zonegeo='Golfe de Gascogne' where zonegeo='Biscaye';  --188 lines 
     157select * from rht.noeudmervs2 where zonegeo is null; -- zero lines 
    158158}}} 
    159159 
     
    250250update rht.rhtvs2_roev2_nbdams set score=1; 
    251251 
    252 select * from roe_v2.roe_geo_v2 where idtrcart is null  ---2625 lignes   etanom validé 
     252select * from roe_v2.roe_geo_v2 where idtrcart is null  ---2625 lines   etanom validé 
    253253select count(etatnom), etatnom from roe_v2.roe_geo_v2 group by etatnom   ---54057 obstacles marqués comme validé. 
    254254select count(etatnom), etatnom from roe_v2.roe_v2 group by etatnom   ---54057 validé 
     
    299299                on ST_DWithin(noeudfrontiere.the_geom,ccmrs.the_geom, 500)) as sub 
    300300        group by id_drain, distance, wso1_id,cs_nbdams, cum_len_sea) as jointure 
    301 where noeudmervs2.id_drain=jointure.id_drain; --100 lignes modifiées 
     301where noeudmervs2.id_drain=jointure.id_drain; --100 lines modifiées 
    302302}}} 
    303303 
     
    324324update rht.rhtvs2 set (dmer, cumnbbar)=(sub.dmer, sub.cumnbbar) 
    325325from (select id_drain,dmer,cumnbbar from rht.noeudmervs2 where dmer is not null and noeudmer) sub 
    326 where sub.id_drain=rhtvs2.id_drain;  ---100 lignes 
     326where sub.id_drain=rhtvs2.id_drain;  ---100 lines 
    327327 
    328328-- calcul du nb de barrages cumulé sous R et réimport  
     
    519519  annee numeric 
    520520 ); 
    521 copy bdmap2009.ers_full_france from 'D:/CelineJouanin/workspace/EDAData/dataEDArht/ers_full_France.csv' with csv header delimiter as ';'  ---23312 lignes 
     521copy bdmap2009.ers_full_france from 'D:/CelineJouanin/workspace/EDAData/dataEDArht/ers_full_France.csv' with csv header delimiter as ';'  ---23312 lines 
    522522 
    523523SELECT AddGeometryColumn ( 'bdmap2009','ers_full_france','the_geom',3035,'POINT',2); 
    524524update bdmap2009.ers_full_france set the_geom=sub.the_geom from ( 
    525525select st_codecsp, id_drain, the_geom from bdmap2009.bdmap_rhtvs2 ) as sub 
    526 where sub.id_drain=ers_full_france.id_drain;   ---23312 lignes modifiées 
    527 }}} 
     526where sub.id_drain=ers_full_france.id_drain;   ---23312 lines modifiées 
     527}}}