Changes between Version 35 and Version 36 of CookBook join RHT-BDMAP


Ignore:
Timestamp:
Oct 26, 2011 4:10:01 PM (14 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook join RHT-BDMAP

    v35 v36  
    340340 
    341341 
    342  
    343  
    344  
     342{{{ 
     343alter table station_geography set schema bdmap2009; 
     344---Some station outside of France 
     345---Changement du système de projection  RGF93_Lambert_93 (srid 2154) --> ETRS LAEA (srid 3035) 
     346alter table bdmap2009.station_geography drop constraint enforce_srid_the_geom; 
     347---update bdmap2009.station_geography set the_geom =ST_Transform(the_geom,3035); 
     348update bdmap2009.station_geography set the_geom =ST_Transform(ST_SetSRID(the_geom,2154),3035);--11379 lignes 
     349-- pour moi geom_update n'a pas marché, il doit bien s'agir d'un problem de trigger, fait drop trigger 
     350 
     351alter table bdmap2009.station_geography add  CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = 3035); 
     352CREATE INDEX index_station_geography ON bdmap2009.station_geography 
     353  USING btree ( id_bdcarthage_troncon); 
     354 
     355select * from bdmap2009.station_geography where a_conserver = true; --9323 
     356}}} 
     357 
     358