Changes between Version 63 and Version 64 of Noeud - parcours RHT
- Timestamp:
- Oct 3, 2012 4:56:56 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Noeud - parcours RHT
v63 v64 93 93 update rht.rhtvs2 SET nextdownid=id_drainaval from rht.fromnodetonodevs2 ft where id_drain=ft.id_drainamont; 94 94 95 select * from rht.rhtvs2 where id_drain=nextdownid --0 lignes96 update rht.rhtvs2 set nextdownid=-9999 where id_drain=nextdownid --0 li gnes95 select * from rht.rhtvs2 where id_drain=nextdownid --0 lines 96 update rht.rhtvs2 set nextdownid=-9999 where id_drain=nextdownid --0 lines 97 97 98 98 select * from rht.rhtvs2 where noeudmer='t' ---nextdownid null 99 update rht.rhtvs2 set nextdownid=-9999 where noeudmer='t' --1082 li gnes99 update rht.rhtvs2 set nextdownid=-9999 where noeudmer='t' --1082 lines 100 100 }}} 101 101 … … 108 108 select id_drain from rht.rhtvs2 except ( 109 109 select rt2.id_drain from rht.rhtvs2 rt1 join rht.rhtvs2 rt2 on rt1.nextdownid=rt2.id_drain) 110 );-- 57493 li gnes110 );-- 57493 lines 111 111 }}} 112 112 … … 142 142 select distance,id_drain from rht.temp_ltree_distance) as sub 143 143 where t.id_drain=sub.id_drain 144 and dmer is null; --114564 li gnes144 and dmer is null; --114564 lines 145 145 }}} 146 146 [[Image(source:data/Docs/trac/rht/dmervs2.jpg,400px)]] … … 154 154 join rht.noeudmervs2 n on st_intersects(p.the_geom,n.the_geom)) s 155 155 where s.id_drain=n.id_drain; -- 1082 156 update rht.noeudmervs2 set zonegeo='Golfe de Gascogne' where zonegeo='Biscaye'; --188 li gnes157 select * from rht.noeudmervs2 where zonegeo is null; -- zero li gnes156 update rht.noeudmervs2 set zonegeo='Golfe de Gascogne' where zonegeo='Biscaye'; --188 lines 157 select * from rht.noeudmervs2 where zonegeo is null; -- zero lines 158 158 }}} 159 159 … … 250 250 update rht.rhtvs2_roev2_nbdams set score=1; 251 251 252 select * from roe_v2.roe_geo_v2 where idtrcart is null ---2625 li gnes etanom validé252 select * from roe_v2.roe_geo_v2 where idtrcart is null ---2625 lines etanom validé 253 253 select count(etatnom), etatnom from roe_v2.roe_geo_v2 group by etatnom ---54057 obstacles marqués comme validé. 254 254 select count(etatnom), etatnom from roe_v2.roe_v2 group by etatnom ---54057 validé … … 299 299 on ST_DWithin(noeudfrontiere.the_geom,ccmrs.the_geom, 500)) as sub 300 300 group by id_drain, distance, wso1_id,cs_nbdams, cum_len_sea) as jointure 301 where noeudmervs2.id_drain=jointure.id_drain; --100 li gnes modifiées301 where noeudmervs2.id_drain=jointure.id_drain; --100 lines modifiées 302 302 }}} 303 303 … … 324 324 update rht.rhtvs2 set (dmer, cumnbbar)=(sub.dmer, sub.cumnbbar) 325 325 from (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 li gnes326 where sub.id_drain=rhtvs2.id_drain; ---100 lines 327 327 328 328 -- calcul du nb de barrages cumulé sous R et réimport … … 519 519 annee numeric 520 520 ); 521 copy bdmap2009.ers_full_france from 'D:/CelineJouanin/workspace/EDAData/dataEDArht/ers_full_France.csv' with csv header delimiter as ';' ---23312 li gnes521 copy bdmap2009.ers_full_france from 'D:/CelineJouanin/workspace/EDAData/dataEDArht/ers_full_France.csv' with csv header delimiter as ';' ---23312 lines 522 522 523 523 SELECT AddGeometryColumn ( 'bdmap2009','ers_full_france','the_geom',3035,'POINT',2); 524 524 update bdmap2009.ers_full_france set the_geom=sub.the_geom from ( 525 525 select st_codecsp, id_drain, the_geom from bdmap2009.bdmap_rhtvs2 ) as sub 526 where sub.id_drain=ers_full_france.id_drain; ---23312 li gnes modifiées527 }}} 526 where sub.id_drain=ers_full_france.id_drain; ---23312 lines modifiées 527 }}}