3 | | Céline je ne retrouve pas tes scripts pour les noeuds mer... Ce serait bien de les coller ici. |
| 7 | drop table if exists rht.rht_topology; |
| 8 | CREATE table rht.rht_topology AS select * from rht.rht r inner join rht.topologie_rht_sept2011 t on t.id_draintopo=r.id_drain; |
| 9 | CREATE INDEX indextopo ON rht.rht_topology USING btree (id_draintopo); |
| 10 | CREATE INDEX indextopogeom ON rht.rht_topology |
| 11 | USING GIST ( the_geom GIST_GEOMETRY_OPS ); |
| 12 | |
| 13 | COMMENT ON table rht.rht_topology IS 'Joining between rht and topologie_rht_sept2011 to see it on Qgis'; |
| 14 | |
| 15 | drop table if exists rht.noeudmer; |
| 16 | create table rht.noeudmer as select * from rht.rht_topology where tnode not in (select fnode from rht.topologie_rht_sept2011); |
| 17 | CREATE INDEX indexmer ON rht.noeudmer USING btree (id_drain); |
| 18 | CREATE INDEX indexmergeom ON rht.noeudmer USING GIST ( the_geom GIST_GEOMETRY_OPS ); |
| 19 | COMMENT ON table rht.noeudmer IS 'Table test to know the downstream node from the sea'; |
| 20 | |
| 21 | select count(*) from rht.noeudmer; --- 1114 lines |
| 22 | }}} |