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