init run calculette rhomeo I12 I13
This commit is contained in:
parent
ff5dcb2a5c
commit
5d5b5af561
@ -320,8 +320,8 @@ def indicBilan(con):
|
||||
coalesce(indic_sig_zh.area, 0) as surf_zh,
|
||||
coalesce(indic_sig_zh.area, 0) +
|
||||
coalesce(indic_sig_zh.area_buff, 0) as surf_rhomeo,
|
||||
CASE WHEN (coalesce(indic_sig_zh.bati_area, 0) +
|
||||
coalesce(indic_sig_zh.bati_area_buff, 0)) > 0 THEN
|
||||
CASE WHEN (coalesce(indic_sig_zh.bati_area, 0) + coalesce(indic_sig_zh.bati_area_buff, 0)) > 0
|
||||
THEN
|
||||
(coalesce(indic_sig_zh.peudense, 0) +
|
||||
coalesce(indic_sig_zh.dense, 0) +
|
||||
coalesce(indic_sig_zh.tresdense, 0) +
|
||||
@ -331,14 +331,17 @@ def indicBilan(con):
|
||||
ELSE
|
||||
0
|
||||
END as presdirect_urba,
|
||||
(coalesce(indic_sig_zh.artif_area, 0) + coalesce(indic_sig_zh.artif_area_buff, 0)) / (coalesce(indic_sig_zh.area, 0) + coalesce(indic_sig_zh.area_buff, 0)) * 100 as presdirect_artif,
|
||||
(coalesce(indic_sig_zh.artif_area, 0) +
|
||||
coalesce(indic_sig_zh.artif_area_buff, 0)) / (coalesce(indic_sig_zh.area, 0) + coalesce(indic_sig_zh.area_buff, 0)) * 100 as presdirect_artif,
|
||||
(coalesce(indic_sig_zh.agri_ign_impact_area, 0) + coalesce(indic_sig_zh.agri_ign_impact_area_buff, 0)) / (indic_sig_zh.area + indic_sig_zh.area_buff) * 100 as presdirect_agri,
|
||||
CASE WHEN t1.surf_zone_hydro_bati > 0 THEN
|
||||
(coalesce(t1.peudense_zone_hydro, 0) + coalesce(t1.dense_zone_hydro, 0) + coalesce(t1.tresdense_zone_hydro, 0)) / t1.surf_zone_hydro_bati * 100
|
||||
(coalesce(t1.peudense_zone_hydro, 0) +
|
||||
coalesce(t1.dense_zone_hydro, 0) +
|
||||
coalesce(t1.tresdense_zone_hydro, 0)) / t1.surf_zone_hydro_bati * 100
|
||||
ELSE
|
||||
0
|
||||
END as presindir_urba,
|
||||
coalesce(t1.surf_zone_hydro_artif, 0) / t1.surf_zone_hydro * 100 as presindir_artif,
|
||||
coalesce(t1.surf_zone_hydro_artif, 0) / t1.surf_zone_hydro * 100 as presindir_artif,
|
||||
coalesce(t1.surf_zone_hydro_agri, 0) / t1.surf_zone_hydro * 100 as presindir_agri,
|
||||
LEFT(current_timestamp(0)::text, 10) as date_maj
|
||||
FROM refgeo.zh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user