Changes between Version 3 and Version 4 of CookBook EpA
- Timestamp:
- Mar 30, 2010 2:03:54 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook EpA
v3 v4 6 6 {{{ 7 7 CD C:\Documents and Settings\cedric\Mes documents\Migrateur\eda\peche_electrique_bretagne\Cédric_Stations IA ANG\Cédric_Stations IA ANG 8 C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 2154 Sta_IA_ANG_Bret_L93_CB ia.iabret > ia.sql8 C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 2154 -W LATIN1 Sta_IA_ANG_Bret_L93_CB ia.iabret > ia.sql 9 9 }}} 10 10 using psql to load the file 11 11 {{{ 12 C:\"Program Files"\PostgreSQL\8.4\bin\psql -d ccm21_eda -h localhost -U postgres -p 5433 -c "CREATE SCHEMA ia;" 12 13 C:\"Program Files"\PostgreSQL\8.4\bin\psql -d ccm21_eda -h localhost -U postgres -p 5433 -f ia.sql 13 14 }}} 15 We have to reproject our data 16 {{{ 17 select SRID (the_geom) FROM ia.iabret--2154 18 }}} 19 20 {{{ 21 ALTER TABLE ia.iabret DROP CONSTRAINT enforce_srid_the_geom; 22 UPDATE ia.iabret set the_geom=ST_Transform(the_geom,3035) ; 23 ALTER TABLE ia.iabret ADD CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 3035); 24 }}} 25 {{{ 26 select SRID (the_geom) FROM ia.iabret--3035 27 }}} 28