Version 5 (modified by celine, 15 years ago) (diff) |
---|
back to first page ..
back to CookBook Eda
Download and load the ROE database
You can download the ROE data and add it into Postgres with the geobs_sans_image_2010_01_08.backup (EDAData/dataEDAcommun/barrage/geobs_sans_image_2010_01_08.backup).
Add data into Postgres
A VERIFIER !
REM================================================ REM Copier coller les commandes dans une invite de commande - Ouvrir une fenêtre d'Invite de commandes : 1) Cliquez sur Démarrer/Exécuter... 2) Dans la zone de texte Ouvrir : saisissez : cmd et validez par OK. REM================================================ REM================================================ REM Script pour Céline (la connexion change - p 5432) REM================================================ REM Création de la base de donnée REM correspond au point 1 de http://62.160.92.241:8066/trac/wiki/CookBook%20shptopostgres C:\"Program Files"\PostgreSQL\8.4\bin\psql -p 5432 -U postgres -c "CREATE DATABASE ROE WITH OWNER = postgres template=postgis ENCODING = 'UTF8' LC_COLLATE = 'French_France.1252' LC_CTYPE = 'French_France.1252' CONNECTION LIMIT = -1;" cd C:\Program Files\PostgreSQL\8.4\bin\ pg_restore.exe --host localhost --port 5432 --username postgres --dbname "ROE" --verbose "C:\Celine Jouanin\workspace\EDAData\dataEDAcommun\barrage\geobs_sans_image_2010_01_08.backup" REM================================================ REM Script pour Cédric (la connexion change - p 5433) REM================================================ REM Création de la base de donnée REM correspond au point 1 de http://62.160.92.241:8066/trac/wiki/CookBook%20shptopostgres C:\"Program Files"\PostgreSQL\8.4\bin\psql -p 5432 -U postgres -c "CREATE DATABASE ROE WITH OWNER = postgres template=postgis ENCODING = 'UTF8' LC_COLLATE = 'French_France.1252' LC_CTYPE = 'French_France.1252' CONNECTION LIMIT = -1;" cd C:\Program Files\PostgreSQL\8.4\bin\pg_restore.exe --host localhost --port 5432 --username postgres --dbname "ROE" --verbose "C:\Celine Jouanin\workspace\EDAData\dataEDAcommun\barrage\geobs_sans_image_2010_01_08.backup"
New database with the backup roe_2010_03_01 This database is called I'll called this new version roe2010
REM================================================ REM Copier coller les commandes dans une invite de commande - Ouvrir une fenêtre d'Invite de commandes : 1) Cliquez sur Démarrer/Exécuter... 2) Dans la zone de texte Ouvrir : saisissez : cmd et validez par OK. REM================================================ REM================================================ REM Script pour Céline (la connexion change - p 5432) REM================================================ REM Création de la base de donnée REM correspond au point 1 de http://62.160.92.241:8066/trac/wiki/CookBook%20shptopostgres C:\"Program Files"\PostgreSQL\8.4\bin\psql -p 5432 -U postgres -c "CREATE DATABASE ROE2010 WITH OWNER = postgres template=postgis ENCODING = 'UTF8' LC_COLLATE = 'French_France.1252' LC_CTYPE = 'French_France.1252' CONNECTION LIMIT = -1;" cd C:\Program Files\PostgreSQL\8.4\bin\ pg_restore.exe --host localhost --port 5432 --username postgres --dbname "ROE2010" --verbose "D:\Celine Jouanin\ROE2010\roe_2010_03_01.backup"
A new table has been added in this new database in public : departements_www avec deux projections : WGS84 et l2e (Lambert II étendu).