| 1 | back to first page[..][[BR]] |
| 2 | |
| 3 | Integrate roe_pate_france.csv (from Virginie 23 mars 2012) into access data and export ODBC link |
| 4 | |
| 5 | {{{ |
| 6 | #!sql |
| 7 | alter table "PATE_France" rename to pate_france; |
| 8 | alter table pate_france set schema rht; |
| 9 | |
| 10 | alter table rht.pate_france rename column "nomCart" to nomCart; |
| 11 | alter table rht.pate_france rename column "nomTopo" to nomTopo; |
| 12 | alter table rht.pate_france rename column "commNom" to commNom; |
| 13 | alter table rht.pate_france rename column "Id_ROE" to Id_ROE; |
| 14 | alter table rht.pate_france rename column "Nom" to Nom; |
| 15 | alter table rht.pate_france rename column "XL93" to XL93; |
| 16 | alter table rht.pate_france rename column "YL93" to YL93; |
| 17 | alter table rht.pate_france rename column "typeNom" to typeNom; |
| 18 | alter table rht.pate_france rename column "stypeNom" to stypeNom; |
| 19 | alter table rht.pate_france rename column "staNom" to staNom; |
| 20 | alter table rht.pate_france rename column "deptNom" to deptNom; |
| 21 | alter table rht.pate_france rename column "note_fr_Anguille" to note_fr_Anguille; |
| 22 | |
| 23 | alter table rht.pate_france add column a_conserver boolean default TRUE; |
| 24 | |
| 25 | |
| 26 | SELECT AddGeometryColumn ( 'rht','pate_france','the_geom',3035,'POINT',2); |
| 27 | update rht.pate_france set the_geom=obstacle.the_geom from roe_v3.obstacle |
| 28 | where obstacle.id_roe=pate_france.id_roe; |
| 29 | |
| 30 | select count(*) from rht.pate_france where the_geom is null; ---0 |
| 31 | }}} |