wiki:ROE download and load

Version 9 (modified by cedric, 15 years ago) (diff)

--

back to first page ..
back to CookBook Eda

Download and load the ROE database

latest file roe_2010_03_01.backup

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;"
REM il faut repasser la base en majuscule sinon la connec
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 new version of the database is called 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"
REM================================================
REM Script pour Cédric (la connexion change - p 5433)
REM================================================
REM script pour cedric créé le 4 mai 2010

C:\"Program Files"\PostgreSQL\8.4\bin\psql -p 5433 -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;"
C:\"Program Files"\PostgreSQL\8.4\bin\psql -p 5433 -U postgres -c "COMMENT ON DATABASE ROE IS 'database 01/03/2010'" 
C:\"Program Files"\PostgreSQL\8.4\bin\pg_restore.exe --host localhost --port 5433 --username postgres --dbname "ROE" --verbose "C:\Documents and Settings\cedric\Mes documents\Migrateur\eda\Barrages\roe_2010_03_01.backup"

A new table has been added in this new database in public : departements_www with two projections : WGS84 et l2e (Lambert II étendu). New obstacles have been added in Corse, in the South, Charente, Meurthe et Moselle...