Changes between Version 20 and Version 21 of RNABE download and load
- Timestamp:
- May 25, 2010 9:44:31 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RNABE download and load
v20 v21 26 26 C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 4258 -I Fr_TWBody_Merge.shp Fr_TWBody > Fr_TWBody.sql 27 27 }}} 28 * Convert it into utf8(as the database is posgis), in notepad, open the Fr_RWBody.sql file and convert it to utf828 * '''Convert it into utf8''' (as the database is posgis), in notepad, open the Fr_RWBody.sql file and convert it to utf8 29 29 Encodage> Convertir en UTF-8 30 30 … … 32 32 33 33 34 * Use psql to restore the filewhile connecting to eda2.0 ... change the port if necessary (cedric : 5433)34 * '''Use psql to restore the file''' while connecting to eda2.0 ... change the port if necessary (cedric : 5433) 35 35 {{{ 36 36 C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0 -h localhost -U postgres -p 5432 -f Fr_RWBodyutf8.sql … … 41 41 }}} 42 42 43 * Create schema RNABEet changement de schéma de la table Fr_RWBody (qui est sous public)43 * '''Create schema RNABE'' et changement de schéma de la table Fr_RWBody (qui est sous public) 44 44 {{{ 45 45 --- In sql editor … … 52 52 }}} 53 53 54 == Changement de la projection == 54 * '''Change the srid''' 55 55 La projection du RNABE est en fait l'ETRS89 et non pas l'ETRS89-LAEA [[BR]] 56 Il faut donc changer le srid 4258 (ETRS89) en 3035 ( 56 Il faut donc changer le srid 4258 (ETRS89) en 3035 (ETRS89-LAEA) [[BR]] 57 57 {{{ 58 -- Problème de script ne fonctionne pas59 58 ALTER TABLE rnabe.fr_rwbody DROP CONSTRAINT enforce_srid_the_geom; 60 59 UPDATE rnabe.fr_rwbody SET the_geom = ST_transform(the_geom, 3035);