Changes between Version 8 and Version 9 of ROE download and load


Ignore:
Timestamp:
May 4, 2010 10:25:02 AM (15 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ROE download and load

    v8 v9  
    55== Download and load the ROE database == 
    66 
    7 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). 
     7latest file roe_2010_03_01.backup 
    88 
    9  
    10 Add data into Postgres  
    11  
    12 [[Color(,red,A VERIFIER !)]] 
    139{{{ 
    1410REM================================================ 
     
    3430REM correspond au point 1 de http://62.160.92.241:8066/trac/wiki/CookBook%20shptopostgres 
    3531C:\"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;" 
     32REM il faut repasser la base en majuscule sinon la connec 
    3633cd 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" 
    3734}}} 
     
    5754pg_restore.exe --host localhost --port 5432 --username postgres --dbname "ROE2010" --verbose "D:\Celine Jouanin\ROE2010\roe_2010_03_01.backup" 
    5855}}} 
     56{{{ 
     57REM================================================ 
     58REM Script pour Cédric (la connexion change - p 5433) 
     59REM================================================ 
     60REM script pour cedric créé le 4 mai 2010 
    5961 
     62C:\"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;" 
     63C:\"Program Files"\PostgreSQL\8.4\bin\psql -p 5433 -U postgres -c "COMMENT ON DATABASE ROE IS 'database 01/03/2010'"  
     64C:\"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" 
     65}}} 
    6066A new table has been added in this new database in public : departements_www with two projections : WGS84 et l2e (Lambert II étendu). 
    6167New obstacles have been added in Corse, in the South, Charente, Meurthe et Moselle...