... | ... | @@ -171,17 +171,32 @@ DROP table IF EXISTS r020_territoire_physique.t_mnt_rge_r3_slope_temp ; |
|
|
### 1.1.2) Segments théoriques calculés à partir d'un MNT surcreusé par réseau hydro réel (idéalement calculés avec GRASS) avec différents threshold :
|
|
|
* Les tables doivent contenir les colonnes suivantes :
|
|
|
|
|
|
Metodo :
|
|
|
Méthodo :
|
|
|
1. cf. [Private] https://gitlab.com/atelier-cartographique1/forum-des-marais-atlantique/-/wikis/2-D%C3%A9limitation-des-TBV#pr%C3%A9-requis
|
|
|
1. SQL ajout flow_accum_km2
|
|
|
<details><summary>Voir le code SQL d'ajout de flow_accum_km2</summary>
|
|
|
SQL
|
|
|
|
|
|
```sql
|
|
|
ALTER TABLE m060_milieux_continuite_tetes_de_bv.t_mnt_sc_sk_stream_4000 ADD COLUMN flow_accum_km2 numeric;
|
|
|
UPDATE m060_milieux_continuite_tetes_de_bv.t_mnt_sc_sk_stream_4000 ADD COLUMN flow_accum_km2 numeric
|
|
|
UPDATE m060_milieux_continuite_tetes_de_bv.t_mnt_sc_sk_stream_4000
|
|
|
SET flow_accum_km2 =flow_accum*25./1000000. ;
|
|
|
COMMENT ON COLUMN m060_milieux_continuite_tetes_de_bv.t_mnt_sc_sk_stream_4000.flow_accum_km2 IS 'champ additionnel flow_accum en km2 : flow_accum*25. / 1000 000.';
|
|
|
|
|
|
|
|
|
ALTER TABLE m060_milieux_continuite_tetes_de_bv.t_mnt_sc_sk_stream_500 ADD COLUMN flow_accum_km2 numeric;
|
|
|
UPDATE m060_milieux_continuite_tetes_de_bv.t_mnt_sc_sk_stream_500
|
|
|
SET flow_accum_km2 =flow_accum*25./1000000. ;
|
|
|
COMMENT ON COLUMN m060_milieux_continuite_tetes_de_bv.t_mnt_sc_sk_stream_500.flow_accum_km2 IS 'champ additionnel flow_accum en km2 : flow_accum*25. / 1000 000.';
|
|
|
|
|
|
|
|
|
ALTER TABLE m060_milieux_continuite_tetes_de_bv.t_mnt_sc_sk_stream_50 ADD COLUMN flow_accum_km2 numeric;
|
|
|
UPDATE m060_milieux_continuite_tetes_de_bv.t_mnt_sc_sk_stream_50
|
|
|
SET flow_accum_km2 =flow_accum*25./1000000. ;
|
|
|
COMMENT ON COLUMN m060_milieux_continuite_tetes_de_bv.t_mnt_sc_sk_stream_50.flow_accum_km2 IS 'champ additionnel flow_accum en km2 : flow_accum*25. / 1000 000.';
|
|
|
|
|
|
```
|
|
|
</details>
|
|
|
|
|
|
|
|
|
* wkb_geometry --nom de la colonne geom du réseau hydro theo
|
... | ... | |