Changes between Version 47 and Version 48 of BDCarthage2011 into eda2.0_RHT


Ignore:
Timestamp:
Feb 28, 2012 4:56:16 PM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BDCarthage2011 into eda2.0_RHT

    v47 v48  
    266266create table rht.rhtvs2_bdcarth as ( 
    267267select id_drain, id_bdcarth from rht.table1 t1 join rht.table2 t2 on t1.id_bdcarth=t2.id_bdcarth and t1.id_drain=t2.id_drain); 
    268 }}} 
     268 
     269--------------------------------------- 
     270create table rht.proj1 as ( 
     271select id_drain, st_buffer(the_geom,150) as the_geom from rht.rhtvs2); 
     272 
     273create table rht.proj2 as ( 
     274select id_drain, st_exteriorring(st_buffer(the_geom,150)) as the_geom from rht.rhtvs2);  ---105044 ms 
     275 
     276select * from bd_carthage2011.troncon_hydrographique limit 2 
     277 
     278drop table if exists rht.proj3; 
     279create table rht.proj3 as ( 
     280select r.id_drain, id_bdcarth, id_bdcarth as idbdc, bdc.the_geom from rht.rhtvs2 r inner join rht.proj1 p on r.id_drain=p.id_drain join bd_carthage2011.troncon_hydrographique bdc  
     281on st_intersects(bdc.the_geom,p.the_geom)); ----176730 ms 
     282 
     283comment on table rht.proj4 is 'Selection des id_bdcarthage à l''extérieur du buffer de 150m (proj1) qui intersect avec st_exteriorint' 
     284 
     285drop table if exists rht.proj4; 
     286create table rht.proj4 as ( 
     287select r.id_drain, id_bdcarth, id_bdcarth as idbdc, bdc.the_geom from rht.rhtvs2 r inner join rht.proj2 p on r.id_drain=p.id_drain join bd_carthage2011.troncon_hydrographique bdc  
     288on st_intersects(bdc.the_geom,p.the_geom)); 
     289}}}