Changes between Version 33 and Version 34 of CookBook join RHT-BDMAP


Ignore:
Timestamp:
Oct 26, 2011 11:40:48 AM (14 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook join RHT-BDMAP

    v33 v34  
    309309select  * from station_geography sg join station st on st.st_codecsp=sg.st_codecsp; --11379 c'est effectivement la même chose.... 
    310310}}} 
     311 
     312BDMAP - Projection Laurent 
     313{{{ 
     314d: 
     315cd D:\CelineJouanin\EDA20RHT\BDMAP\geolocalisation 
     316C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0_RHT -h localhost -U postgres -p 5432 -f station_geography.sql 
     317 
     318alter table station_geography set schema bdmap2009; 
     319---Some station outside of France 
     320---Changement du système de projection  RGF93_Lambert_93 (srid 2154) --> ETRS LAEA (srid 3035) 
     321alter table bdmap2009.station_geography drop constraint enforce_srid_the_geom; 
     322update bdmap2009.station_geography set the_geom =ST_Transform(the_geom,3035); 
     323 
     324alter table bdmap2009.station_geography add CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2); 
     325alter table bdmap2009.station_geography add  CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text OR the_geom IS NULL); 
     326alter table bdmap2009.station_geography add  CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = 3035); 
     327alter table bdmap2009.station_geography ADD CONSTRAINT pk_id PRIMARY KEY(id); 
     328CREATE INDEX indexstatgeo ON bdmap2009.station_geography 
     329  USING GIST ( the_geom GIST_GEOMETRY_OPS ); 
     330}}} 
     331 
     332 
     333 
     334 
     335