| 311 | |
| 312 | BDMAP - Projection Laurent |
| 313 | {{{ |
| 314 | d: |
| 315 | cd D:\CelineJouanin\EDA20RHT\BDMAP\geolocalisation |
| 316 | C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0_RHT -h localhost -U postgres -p 5432 -f station_geography.sql |
| 317 | |
| 318 | alter 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) |
| 321 | alter table bdmap2009.station_geography drop constraint enforce_srid_the_geom; |
| 322 | update bdmap2009.station_geography set the_geom =ST_Transform(the_geom,3035); |
| 323 | |
| 324 | alter table bdmap2009.station_geography add CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2); |
| 325 | alter table bdmap2009.station_geography add CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text OR the_geom IS NULL); |
| 326 | alter table bdmap2009.station_geography add CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = 3035); |
| 327 | alter table bdmap2009.station_geography ADD CONSTRAINT pk_id PRIMARY KEY(id); |
| 328 | CREATE INDEX indexstatgeo ON bdmap2009.station_geography |
| 329 | USING GIST ( the_geom GIST_GEOMETRY_OPS ); |
| 330 | }}} |
| 331 | |
| 332 | |
| 333 | |
| 334 | |
| 335 | |