342 | | |
343 | | |
344 | | |
| 342 | {{{ |
| 343 | alter 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) |
| 346 | alter table bdmap2009.station_geography drop constraint enforce_srid_the_geom; |
| 347 | ---update bdmap2009.station_geography set the_geom =ST_Transform(the_geom,3035); |
| 348 | update 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 | |
| 351 | alter table bdmap2009.station_geography add CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = 3035); |
| 352 | CREATE INDEX index_station_geography ON bdmap2009.station_geography |
| 353 | USING btree ( id_bdcarthage_troncon); |
| 354 | |
| 355 | select * from bdmap2009.station_geography where a_conserver = true; --9323 |
| 356 | }}} |
| 357 | |
| 358 | |