Changes between Version 36 and Version 37 of BDCarthage2011 into eda2.0_RHT


Ignore:
Timestamp:
Oct 7, 2011 5:07:46 PM (14 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BDCarthage2011 into eda2.0_RHT

    v36 v37  
    225225        group by id_bdcarth, distance, id_drain 
    226226        order by id_bdcarth ;  ---393393 lines 
     227 
     228--- Même requête mais en ne conservant que les id_drain qui n'ont pas id_bdcarth associé dans rht.rht_bdcarthage 
     229 select distinct on (id_bdcarth,id_drain) id_bdcarth, min(distance) as distance, id_drain from ( 
     230                select r.id_drain, 
     231                id_bdcarth, 
     232                ST_Distance(r.the_geom,bdc.the_geom) as distance 
     233        from (select * from rht.rht where id_drain in(select id_drain from rht.rht except (select id_drain from rht.rht_bdcarthage))) as r join rht.rht_150 rht150 on r.id_drain=rht150.id_drain 
     234                        join    bd_carthage2011.troncon_hydrographique bdc on st_intersects(bdc.the_geom,rht150.the_geom) 
     235        where nature !='Aqueduc, conduite forcée' and num_superp !=1 ) as toto 
     236        group by id_bdcarth, distance, id_drain 
     237        order by id_bdcarth ; 
    227238}}} 
    228239