Changes between Version 8 and Version 9 of CLC download and load
- Timestamp:
- May 25, 2010 10:58:05 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CLC download and load
v8 v9 18 18 19 19 {{{ 20 #!sql21 20 -- REM se placer dans le répertoire ou sont les données 22 21 D: 23 22 cd 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 23 C:\"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 }}} 25 Problem : 0 ko into the sql file 26 27 {{{ 25 28 C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f clc00_v2_Europe.sql 26 29 }}} … … 33 36 select SRID (the_geom) FROM CLC.clc00_v2_europe; 34 37 }}} 38 39 * Change the srid 40 {{{ 41 ALTER TABLE clc.clc06_fr_l2e DROP CONSTRAINT enforce_srid_the_geom; 42 UPDATE clc.clc06_fr_l2e SET the_geom = ST_transform(the_geom, 3035); 43 ALTER TABLE clc.clc06_fr_l2e ADD CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 3035); 44 }}}