| 1 | back to first page[..][[BR]] |
| 2 | back to ["RHT"][[BR]] |
| 3 | |
| 4 | Les données ont été préalablement projetées en 3035 sous ArcGis[[BR]] |
| 5 | Intégration de la table avec id_drain, fnode, tnode |
| 6 | {{{ |
| 7 | D: |
| 8 | cd D:\CelineJouanin\RHT_Estimkart\RHT_October_newversion |
| 9 | C:\"Program Files"\PostgreSQL\8.4\bin\shp2pgsql -s 3035 -c -g the_geom -W LATIN1 -I rhtvs2_3035.shp rhtvs2 > rhtvs2.sql |
| 10 | C:\"Program Files"\PostgreSQL\8.4\bin\psql -d eda2.0_RHT -h localhost -U postgres -p 5432 -f rhtvs2.sql |
| 11 | |
| 12 | ALTER TABLE rhtvs2 SET SCHEMA rht; |
| 13 | |
| 14 | -- Constraints |
| 15 | ALTER TABLE rht.rhtvs2 DROP CONSTRAINT rht_pkey; |
| 16 | ALTER TABLE rht.rhtvs2 ADD CONSTRAINT pk_id_drain PRIMARY KEY (id_drain); |
| 17 | |
| 18 | -- Create an index on rht |
| 19 | CREATE INDEX indexrhtvs2 ON rht.rhtvs2 |
| 20 | USING GIST ( the_geom GIST_GEOMETRY_OPS ); |
| 21 | |
| 22 | DROP INDEX IF EXISTS rht.indexrhtvs2; |
| 23 | CREATE INDEX indexrht2 |
| 24 | ON rht.rhtvs2 |
| 25 | USING btree (id_drain); |
| 26 | }}} |
| 27 | |
| 28 | |
| 29 | |