wiki:Limites administratives Europe

Version 5 (modified by celine, 15 years ago) (diff)

--

back to first page ..

Download and load the data

54 european countries as :

gidname
4Belgium
8Denmark
10Finland
11France
12Germany
14Greece
17Ireland
19Italy (Sardaigne, Sicile)
30Norway
32Portugal
37Spain
38Sweden
40United Kingdom
47Iceland

source:data/Docs/trac/European countries/european countries.jpg

Projection : WGS84 (pas la projection ETRS1989-LAEA) --> srid=4326

d:
cd D:\Celine Jouanin\Limites administratives Europe
C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 4326 -I european_countries_WGS84.shp limiteeurope > limiteeurope.sql
--Céline
C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f limiteeurope.sql 
--Cédric
C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5433 -f limiteeurope.sql 
  • Create schema europe et changement de schéma de la table limiteeurope (qui est sous public)
    --- In sql editor 
    CREATE SCHEMA europe;
    ALTER TABLE limiteeurope SET SCHEMA europe;
    
  • Changement du type de projection : WGS84 (srid 4326) --> ETRS1989-LAEA (srid 3035)
    ALTER TABLE europe.limiteeurope DROP CONSTRAINT enforce_srid_the_geom;
    UPDATE europe.limiteeurope SET the_geom = ST_transform(the_geom, 3035); 
    ALTER TABLE europe.limiteeurope ADD CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 3035);