18 | | |
| 18 | A voir sous postgres : |
| 19 | {{{ |
| 20 | REM Ouvrir ce fichier avec notepad++ et copier coller les commandes dans une invite de commande |
| 21 | REM================================================ |
| 22 | REM Script pour Céline (la connexion change - p 5432) |
| 23 | REM================================================ |
| 24 | REM Création de la base de donnée |
| 25 | REM correspond au point 1 de http://62.160.92.241:8066/trac/wiki/CookBook%20shptopostgres |
| 26 | C:\"Program Files"\PostgreSQL\8.4\bin\psql -p 5432 -U postgres -c "CREATE DATABASE CLCv2_EDA WITH OWNER = postgres template=postgis ENCODING = 'UTF8' LC_COLLATE = 'French_France.1252' LC_CTYPE = 'French_France.1252' CONNECTION LIMIT = -1;" |
| 27 | C:\Program Files\PostgreSQL\8.2\bin>pgsql2shp -f D:\CLC\clc00_europe_v2.shp clc2000 -u postgres clc2000_europe |
| 28 | }}} |