Changes between Initial Version and Version 1 of Ecological region Download and load


Ignore:
Timestamp:
Jul 8, 2010 4:38:38 PM (15 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Ecological region Download and load

    v1 v1  
     1back to the first page [..][[BR]] 
     2back to ["Ecological regions"][[BR]] 
     3 
     4= Download and load = 
     5Digital map of European ecological regions : http://www.eea.europa.eu/data-and-maps/data/digital-map-of-european-ecological-regions 
     6 
     7Projection in Lambert Azimuthal Equal Area (LAEA) srid=2163 --> transformed into ETRS LAEA srid=3035[[BR]] 
     8 
     9{{{ 
     10D: 
     11CD D:\Celine Jouanin\Ecological regions 
     12C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 2163 -W LATIN1 dmeereea4074i_arc dmeereea4074i_arc > ecologicalregion_arc.sql 
     13C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 2163 -W LATIN1 dmeereea4074i_label dmeereea4074i_label > ecologicalregion_label.sql 
     14C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 2163 -W LATIN1 dmeereea4074i_polygon dmeereea4074i_polygon > ecologicalregion_polygon.sql 
     15C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 2163 -W LATIN1 dmeereea4074i_tic dmeereea4074i_tic > ecologicalregion_tic.sql 
     16}}} 
     17 
     18{{{ 
     19--Céline 
     20C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f ecologicalregion_arc.sql 
     21C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f ecologicalregion_label.sql 
     22C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f ecologicalregion_polygon.sql 
     23C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f ecologicalregion_tic.sql 
     24--Cédric 
     25C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5433 -f ecologicalregion_arc.sql 
     26C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5433 -f ecologicalregion_label.sql 
     27C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5433 -f ecologicalregion_polygon.sql 
     28C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5433 -f ecologicalregion_tic.sql 
     29}}} 
     30 
     31    * Create schema ecologicalregion et changement de schéma des tables (qui sont sous public) 
     32{{{ 
     33--- In sql editor  
     34CREATE SCHEMA ecologicalregion; 
     35ALTER TABLE uga SET SCHEMA ecologicalregion; 
     36 
     37}}} 
     38 
     39    * Changement du type de projection : RGF93_Lambert_93 (srid 2154) --> ETRS1989-LAEA (srid 3035) 
     40{{{ 
     41ALTER TABLE uga2010.uga DROP CONSTRAINT enforce_srid_the_geom; 
     42UPDATE uga2010.uga SET the_geom = ST_transform(the_geom, 3035);  
     43ALTER TABLE uga2010.uga ADD CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 3035); 
     44}}}