Changes between Version 40 and Version 41 of PATE Anguille


Ignore:
Timestamp:
Feb 15, 2012 10:58:38 AM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PATE Anguille

    v40 v41  
    137137}}} 
    138138 
     139Coordonnées absentes car les obstacles ne sont pas dans la version publique d'avril 2011 --> récupérer les coordonnées dans la table roe_v2.obstacle 
    139140||id_roe|||| id_drain|| 
    140141||ROE64290              ||pas dans la version ROE publique d'avril 2011||       122703|| 
     
    369370(select id_drain, surf_bv from rht.attributs_rht_fev_2011_vs2) as sub 
    370371where sub.id_drain=pate.id_drain; 
    371  
    372 ---Projection id_roe sur RHT à vérifier 
     372}}} 
     373 
     374== Projection id_roe sur RHT à vérifier == 
     375{{{ 
     376#!sql 
    373377id_roe in ('ROE46202','ROE42025','ROE45125','ROE6785','ROE20586','ROE43996') 
    374378select surf_bv, surf_bv_rht, id_drain, surf_bv-surf_bv_rht as diff from rht.pate where surf_bv is not null order by diff 
    375379}}} 
     380A modifier dans rht.rht_roev2  --> calcul cumnbbar à revoir 
     381{{{ 
     382#!sql 
     383id_roe in ('ROE42025','ROE20586','ROE46202','ROE45125','ROE6785','ROE43996') 
     384update rht.rht_roev2 set id_drain=103936 where id_roe='ROE42025'; 
     385update rht.rht_roev2 set id_drain=207306 where id_roe='ROE20586'; 
     386update rht.rht_roev2 set id_drain=122291 where id_roe='ROE46202'; 
     387update rht.rht_roev2 set id_drain=120931 where id_roe='ROE45125'; 
     388update rht.rht_roev2 set id_drain=121592 where id_roe='ROE6785'; 
     389update rht.rht_roev2 set id_drain=121530 where id_roe='ROE43996'; 
     390 
     391drop table if exists rht.rhvs2_roev2_nbdams; 
     392create table rht.rhtvs2_roev2_nbdams as 
     393select id_drain, count(nbdams) as nbdams from rht.rhtvs2_roev2 as r group by id_drain; 
     394}}} 
     395A modifier dans rht.pate --> redonner le bon module 
     396{{{ 
     397#!sql 
     398id_roe in ('ROE46202','ROE45125','ROE6785','ROE43996') 
     399update rht.pate set id_drain=122291 where id_roe='ROE46202'; 
     400update rht.pate set id_drain=120931 where id_roe='ROE45125'; 
     401update rht.pate set id_drain=121592 where id_roe='ROE6785'; 
     402update rht.pate set id_drain=121530 where id_roe='ROE43996'; 
     403 
     404}}}