| 1 | back to first page [..][[BR]] |
| 2 | back to ["UGA][[BR]] |
| 3 | |
| 4 | Data in ETRS1989 LAEA srid=3035[[BR]] |
| 5 | |
| 6 | {{{ |
| 7 | d: |
| 8 | cd D:\Celine Jouanin\European WISE\wise_coastal_waters_shp |
| 9 | C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 3035 -I Coastal_waters.shp costal_waters > costal_waters.sql |
| 10 | cd D:\Celine Jouanin\European WISE\wise_rdbs_f1v3_shp |
| 11 | C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 3035 -I RDB_F1v3.shp RDB_F1v3 > RDB_F1v3.sql |
| 12 | cd D:\Celine Jouanin\European WISE\wise_transitional_waters_shp |
| 13 | C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 3035 -I Transitional_waters.shp transitional_waters > transitional_waters.sql |
| 14 | }}} |
| 15 | |
| 16 | * We have to convert it into utf8 (as the database is posgis), in notepad, open the uga.sql file and convert it to utf8[[BR]] |
| 17 | {{{ |
| 18 | Encodage>convertir en utf8 |
| 19 | }}} |
| 20 | And save the file as : transitional_watersutf8 |
| 21 | |
| 22 | {{{ |
| 23 | --Céline |
| 24 | C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f transitional_watersutf8.sql |
| 25 | C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f transitional_watersutf8.sql |
| 26 | C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f transitional_watersutf8.sql |
| 27 | --Cédric |
| 28 | C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5433 -f ugautf8.sql |
| 29 | }}} |
| 30 | |
| 31 | * Create schema uga2010 et changement de schéma de la table uga (qui est sous public) |
| 32 | {{{ |
| 33 | --- In sql editor |
| 34 | CREATE SCHEMA uga2010; |
| 35 | ALTER TABLE uga SET SCHEMA uga2010; |
| 36 | }}} |
| 37 | |
| 38 | * Changement du type de projection : RGF93_Lambert_93 (srid 2154) --> ETRS1989-LAEA (srid 3035) |
| 39 | {{{ |
| 40 | ALTER TABLE uga2010.uga DROP CONSTRAINT enforce_srid_the_geom; |
| 41 | UPDATE uga2010.uga SET the_geom = ST_transform(the_geom, 3035); |
| 42 | ALTER TABLE uga2010.uga ADD CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 3035); |
| 43 | }}} |