Changes between Version 8 and Version 9 of CLC download and load


Ignore:
Timestamp:
May 25, 2010 10:58:05 AM (15 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CLC download and load

    v8 v9  
    1818 
    1919{{{ 
    20 #!sql 
    2120-- REM se placer dans le répertoire ou sont les données 
    2221D: 
    2322cd D:\Celine Jouanin\CLC\CLC00_v2_Europe_mai_2010\ 
    24 C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 4326 -c -g the_geom -I clc00_v2_Europe_Merge.shp clc00_v2_Europe > clc00_v2_Europe.sql 
     23C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 4326 -c -g the_geom -I clc00_v2_europe.shp clc00_v2_europe > clc00_v2_europe.sql 
     24}}} 
     25Problem : 0 ko into the sql file 
     26 
     27{{{ 
    2528C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f clc00_v2_Europe.sql  
    2629}}} 
     
    3336select SRID (the_geom) FROM CLC.clc00_v2_europe; 
    3437}}} 
     38 
     39   * Change the srid 
     40{{{ 
     41ALTER TABLE clc.clc06_fr_l2e DROP CONSTRAINT enforce_srid_the_geom; 
     42UPDATE clc.clc06_fr_l2e SET the_geom = ST_transform(the_geom, 3035);  
     43ALTER TABLE clc.clc06_fr_l2e ADD CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 3035); 
     44}}}