diff --git a/swmm_views/08_vw_swmm_outfalls.sql b/swmm_views/08_vw_swmm_outfalls.sql index c8d3aefe..3ea84064 100644 --- a/swmm_views/08_vw_swmm_outfalls.sql +++ b/swmm_views/08_vw_swmm_outfalls.sql @@ -7,12 +7,12 @@ SELECT wn.obj_id as Name, coalesce(wn.bottom_level,0) as InvertElev, -- 'FREE'::varchar as Type, - CASE + CASE WHEN dp.waterlevel_hydraulic IS NOT NULL THEN 'FIXED' ELSE 'FREE' END as Type, -- Type of outfall boundary condition: FREE: outfall stage determined by minimum of critical flow depth and normal flow depth in the connecting conduit. NORMAL: outfall stage based on normal flow depth in the connecting conduit. FIXED: outfall stage set to a fixed value. TIDAL: outfall stage given by a table of tide elevation versus time of day. TIMESERIES: outfall stage supplied from a time series of elevations -- 0 as StageData, - CASE + CASE WHEN dp.waterlevel_hydraulic IS NOT NULL THEN waterlevel_hydraulic ELSE 0 END as StageData, @@ -45,12 +45,12 @@ SELECT wn.obj_id as Name, coalesce(wn.bottom_level,0) as InvertElev, -- 'FREE'::varchar as Type, - CASE + CASE WHEN dp.waterlevel_hydraulic IS NOT NULL THEN 'FIXED' ELSE 'FREE' END as Type, -- Type of outfall boundary condition: FREE: outfall stage determined by minimum of critical flow depth and normal flow depth in the connecting conduit. NORMAL: outfall stage based on normal flow depth in the connecting conduit. FIXED: outfall stage set to a fixed value. TIDAL: outfall stage given by a table of tide elevation versus time of day. TIMESERIES: outfall stage supplied from a time series of elevations -- 0 as StageData, - CASE + CASE WHEN dp.waterlevel_hydraulic IS NOT NULL THEN waterlevel_hydraulic ELSE 0 END as StageData, diff --git a/swmm_views/23_vw_swmm_xsections.sql b/swmm_views/23_vw_swmm_xsections.sql index 4430135d..842a3046 100644 --- a/swmm_views/23_vw_swmm_xsections.sql +++ b/swmm_views/23_vw_swmm_xsections.sql @@ -38,7 +38,7 @@ SELECT DISTINCT 0 as Geom4, 1 as Barrels, 0 as Culvert, -- default set to 0 instead of NULL - CASE + CASE WHEN ws_st.vsacode IN (7959, 6529, 6526) THEN 'planned' ELSE 'current' END as state,