Changes between Version 33 and Version 34 of BDCarthage2011 into eda2.0_RHT


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

--

Legend:

Unmodified
Added
Removed
Modified
  • BDCarthage2011 into eda2.0_RHT

    v33 v34  
    212212 USING btree 
    213213 (id_drain); 
     214 
     215 
     216/------Requête effectuée avec Cédric le 7/10/2011 
     217 select distinct on (id_bdcarth,id_drain) id_bdcarth, min(distance) as distance, id_drain from ( 
     218                select r.id_drain, 
     219                id_bdcarth, 
     220                ST_Distance(r.the_geom,bdc.the_geom) as distance 
     221        from (select * from rht.rht where id_drain in('309179','309116','309047','309048')) as r join rht.rht_150 rht150 on r.id_drain=rht150.id_drain 
     222                        join    bd_carthage2011.troncon_hydrographique bdc on st_intersects(bdc.the_geom,rht150.the_geom) 
     223        where nature !='Aqueduc, conduite forcée' and num_superp !=1 ) as toto 
     224        group by id_bdcarth, distance, id_drain 
     225        order by id_bdcarth ;  ---393393 lines 
    214226}}} 
    215227