1 | #---------------------------------------------------------------------------- |
---|
2 | # script de création de la base à partir d'un batch command |
---|
3 | # @author cedric pour memo |
---|
4 | # attention compatibilité postgres 8.3 |
---|
5 | #--------------------------------------------------------------- |
---|
6 | REM changement du répertoire de travail |
---|
7 | cd C:\Documents and Settings\cedric\Mes documents\Migrateur\eda\couches_SIG\coucheccm\CCM France |
---|
8 | REM à partir du programme shp2pqsql création d'un fichier sql (ci dessous un exemple) |
---|
9 | REM C:\PostgresPlus\8.3\bin\shp2pgsql -? |
---|
10 | C:\PostgresPlus\8.3\bin\shp2pgsql -s 3035 CATCHMENTS catchments > catchments.sql |
---|
11 | C:\PostgresPlus\8.3\bin\psql -d CCM -h localhost -U postgres -f catchments.sql |
---|
12 | C:\PostgresPlus\8.3\bin\shp2pgsql -s 3035 COAST coast > coast.sql |
---|
13 | C:\PostgresPlus\8.3\bin\psql -d CCM -h localhost -U postgres -f coast.sql |
---|
14 | C:\PostgresPlus\8.3\bin\shp2pgsql -s 3035 ISLANDS islands > islands.sql |
---|
15 | C:\PostgresPlus\8.3\bin\psql -d CCM -h localhost -U postgres -f islands.sql |
---|
16 | C:\PostgresPlus\8.3\bin\shp2pgsql -s 3035 LAKES lakes > lakes.sql |
---|
17 | C:\PostgresPlus\8.3\bin\psql -d CCM -h localhost -U postgres -f lakes.sql |
---|
18 | C:\PostgresPlus\8.3\bin\shp2pgsql -s 3035 MAINRIVERS mainrivers > mainrivers.sql |
---|
19 | C:\PostgresPlus\8.3\bin\psql -d CCM -h localhost -U postgres -f mainrivers.sql |
---|
20 | C:\PostgresPlus\8.3\bin\shp2pgsql -s 3035 NAMEDRIVERS namedrivers > namedrivers.sql |
---|
21 | C:\PostgresPlus\8.3\bin\psql -d CCM -h localhost -U postgres -f namedrivers.sql |
---|
22 | C:\PostgresPlus\8.3\bin\shp2pgsql -s 3035 RIVERNODES rivernodes > rivernodes.sql |
---|
23 | C:\PostgresPlus\8.3\bin\psql -d CCM -h localhost -U postgres -f rivernodes.sql |
---|
24 | C:\PostgresPlus\8.3\bin\shp2pgsql -s 3035 RIVERSEGMENTS riversegments > riversegments.sql |
---|
25 | C:\PostgresPlus\8.3\bin\psql -d CCM -h localhost -U postgres -f riversegments.sql |
---|
26 | C:\PostgresPlus\8.3\bin\shp2pgsql -s 3035 SEAOUTLETS seaoutlets > seaoutlets.sql |
---|
27 | C:\PostgresPlus\8.3\bin\psql -d CCM -h localhost -U postgres -f seaoutlets.sql |
---|
28 | C:\PostgresPlus\8.3\bin\pg_dump -F c -U postgres -p 5432 CCM>CCM.dump |
---|