| 505 | |
| 506 | == ERS_FULL == |
| 507 | {{{ |
| 508 | #!sql |
| 509 | DROP TABLE IF EXISTS bdmap2009.ers_full_france; |
| 510 | CREATE TABLE bdmap2009.ers_full_france |
| 511 | ( |
| 512 | id_drain integer, |
| 513 | st_id character varying(8), |
| 514 | op_cd__moyenprospection integer, |
| 515 | ef_fishingmethod integer, |
| 516 | ef_nbpas character varying(10), |
| 517 | annee numeric |
| 518 | ); |
| 519 | copy bdmap2009.ers_full_france from 'D:/CelineJouanin/workspace/EDAData/dataEDArht/ers_full_France.csv' with csv header delimiter as ';' ---23312 lignes |
| 520 | |
| 521 | SELECT AddGeometryColumn ( 'bdmap2009','ers_full_france','the_geom',3035,'POINT',2); |
| 522 | update bdmap2009.ers_full_france set the_geom=sub.the_geom from ( |
| 523 | select st_codecsp, id_drain, the_geom from bdmap2009.bdmap_rhtvs2 ) as sub |
| 524 | where sub.id_drain=ers_full_france.id_drain; ---23312 lignes modifiées |
| 525 | }}} |