Changes between Initial Version and Version 1 of CookBook Eda


Ignore:
Timestamp:
Jan 22, 2010 2:45:25 PM (15 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook Eda

    v1 v1  
     1== CookBook == 
     2 
     3In this section we will report "how to" procedures to do the differents tasks in EDA 
     4 
     5== How to create a postgres database from a shape file" 
     6 
     7Il faut d'abord ouvrir un batch de commande exécuter> cmd 
     8Changer de répertoire de travail pour atteindre le fichier à importer 
     9 {{{ 
     10cd C:\Documents and Settings\cedric\Mes documents\Migrateur\eda\w2000a18 
     11}}} 
     12Dans PgAdmin, se connecter au serveur 
     13> clic droit creation d'une base de donnee  
     14PgAmin_create_gis_database.jpg 
     15#* à partir du programme shp2pqsql création d'un fichier sql (ci dessous un exemple) 
     16C:\PostgresPlus\8.3\bin\shp2pgsql -?  
     17C:\PostgresPlus\8.3\bin\shp2pgsql -s 26986 TOWNS_POLY towns > towns.sql 
     18C:\PostgresPlus\8.3\bin\shp2pgsql -s 3035 CATCHMENT_W catchment_w > catchment_w.sql 
     19 
     20 
     21C:\PostgresPlus\8.3\bin\psql -d CCM -h localhost -U postgres -f catchment_w.sql