Changes between Version 3 and Version 4 of CookBook EpA


Ignore:
Timestamp:
Mar 30, 2010 2:03:54 PM (15 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook EpA

    v3 v4  
    66{{{ 
    77CD 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.sql 
     8C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 2154 -W LATIN1 Sta_IA_ANG_Bret_L93_CB ia.iabret > ia.sql 
    99}}} 
    1010using psql to load the file 
    1111{{{ 
     12C:\"Program Files"\PostgreSQL\8.4\bin\psql -d ccm21_eda -h localhost -U postgres -p 5433 -c "CREATE SCHEMA ia;" 
    1213C:\"Program Files"\PostgreSQL\8.4\bin\psql -d ccm21_eda -h localhost -U postgres -p 5433 -f ia.sql  
    1314}}} 
     15We have to reproject our data 
     16{{{ 
     17select SRID (the_geom) FROM ia.iabret--2154 
     18}}} 
     19 
     20{{{ 
     21ALTER TABLE ia.iabret DROP CONSTRAINT enforce_srid_the_geom; 
     22UPDATE ia.iabret set the_geom=ST_Transform(the_geom,3035) ; 
     23ALTER TABLE ia.iabret ADD CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 3035); 
     24}}} 
     25{{{ 
     26select SRID (the_geom) FROM ia.iabret--3035 
     27}}} 
     28