Changes between Version 34 and Version 35 of CookBook join ROE_RHT


Ignore:
Timestamp:
Jan 2, 2012 5:17:01 PM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook join ROE_RHT

    v34 v35  
    239239where t.id_drain=sub.id_drain 
    240240}}} 
     241 
     242 
     243-- Vérification -- 
     244{{{ 
     245#!sql 
     246drop table if exists rht.rht_roe_test; 
     247create table rht.rht_roe_test as ( 
     248select distinct on (id_drain) id_drain, iddrain, id_roe, idroe from ( 
     249select bd.id_drain, ro.id_drain as iddrain, bd.id_roe, ro.id_roe as idroe from rht.rht_bdcarthage_roev2 bd join rht.rht_roev2 ro on bd.id_roe=ro.id_roe) as sub where iddrain!=id_drain); 
     250 
     251alter table rht.rht_roe_test add column the_geom geometry; 
     252update rht.rht_roe_test set the_geom=roe_v2.the_geom from roe_v2.roe_v2 
     253 where roe_v2.id_roe=rht_roe_test.idroe;  
     254}}} 
     255Il y a 5695 barrages qui sont potentiellement mal ou pas projetés.  Hum ; difficile de les vérifier à la main un par un.