Changes between Version 16 and Version 17 of RNABE download and load


Ignore:
Timestamp:
May 21, 2010 2:32:04 PM (15 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RNABE download and load

    v16 v17  
    1717REM se placer dans le répertoire ou sont les données 
    1818D: 
    19 cd D:\Celine Jouanin\RNABE\France 
     19cd D:\Celine Jouanin\RNABE\France_RW 
    2020}}} 
    2121{{{ 
    22 C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 4258 -I RWBody_Merge.shp RWBody > RWBody.sql 
     22C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 4258 -I Fr_RWBody_Merge.shp Fr_RWBody > Fr_RWBody.sql 
    2323}}} 
    2424    * Convert it into utf8  (as the database is posgis), in notepad, open the stationsp.sql file and convert it to utf8 
    2525Encodage> Convertir en UTF-8 
    2626 
    27 And save the file as : RWBodyutf8 
     27And save the file as : Fr_RWBodyutf8 
    2828 
    2929 
    3030    * Use psql to restore the file while connecting to eda2.0 ... change the port if necessary (cedric : 5433) 
    3131{{{ 
    32 C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f RWBodyutf8.sql  
     32C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f Fr_RWBodyutf8.sql  
    3333}}} 
    3434 
     
    3737--- In sql editor  
    3838CREATE SCHEMA RNABE; 
    39 ALTER TABLE rwbody SET SCHEMA rnabe; 
    40 select SRID (the_geom) FROM rnabe.rwbody; 
     39ALTER TABLE fr_rwbody SET SCHEMA rnabe; 
    4140}}} 
    4241 
     
    4443La projection du RNABE est en fait l'ETRS89 et non pas l'ETRS89-LAEA [[BR]] 
    4544Il faut donc changer le srid 4258 (ETRS89) en 3035 ( ) [[BR]] 
    46  
    47  
     45{{{ 
     46-- Problème de script ne fonctionne pas 
     47select SRID (the_geom) FROM rnabe.fr_rwbody; 
     48SELECT addGeometryColunm('fr_rwbody','the_geom',3035,'MULTILINESTRING',2); 
     49UPDATE rnabe.fr_rwbody SET the_geom = ST_tranform(the_geom,3035); 
     50}}} 
    4851 
    4952== Autre façon d'importer les données ==