comparison artifacts/doc/conf/meta-data.xml @ 9111:ee77e544e890

Where clause in bed-heights-statement extended by km range condition
author mschaefer
date Mon, 04 Jun 2018 08:32:25 +0200
parents e68d4a10c308
children 189cc8ededbd
comparison
equal deleted inserted replaced
9110:928cc44711db 9111:ee77e544e890
2112 '<BR>Lagesystem: ' || ls.name || 2112 '<BR>Lagesystem: ' || ls.name ||
2113 '<BR>Höhensystem: ' || cur_em.name || 2113 '<BR>Höhensystem: ' || cur_em.name ||
2114 '<BR>ursprüngliches Höhensystem: ' || old_em.name || 2114 '<BR>ursprüngliches Höhensystem: ' || old_em.name ||
2115 '<BR>Strecke: ' || round(r.a, 1) || '-' || round(r.b, 1) || 2115 '<BR>Strecke: ' || round(r.a, 1) || '-' || round(r.b, 1) ||
2116 '<BR>Auswerter: ' || bhs.evaluation_by AS info, 2116 '<BR>Auswerter: ' || bhs.evaluation_by AS info,
2117 bhv.height_count AS bedh_height_count, 2117 COALESCE(bhv.height_count,0) AS bedh_height_count,
2118 bhv.min_count AS bedh_min_count, 2118 COALESCE(bhv.min_count,0) AS bedh_min_count,
2119 bhv.max_count AS bedh_max_count 2119 COALESCE(bhv.max_count,0) AS bedh_max_count
2120 FROM bed_height bhs 2120 FROM bed_height bhs
2121 JOIN bed_height_type bht ON bht.id = bhs.type_id 2121 JOIN bed_height_type bht ON bht.id = bhs.type_id
2122 JOIN location_system ls ON ls.id = location_system_id 2122 JOIN location_system ls ON ls.id = location_system_id
2123 JOIN elevation_model cur_em ON cur_em.id = cur_elevation_model_id 2123 JOIN elevation_model cur_em ON cur_em.id = cur_elevation_model_id
2124 LEFT JOIN elevation_model old_em 2124 LEFT JOIN elevation_model old_em
2125 ON old_em.id = old_elevation_model_id 2125 ON old_em.id = old_elevation_model_id
2126 LEFT JOIN ranges r ON r.id = range_id 2126 LEFT JOIN ranges r ON r.id = range_id
2127 LEFT JOIN (SELECT bed_height_id, COUNT(height) AS height_count, COUNT(min_height) AS min_count, COUNT(max_height) AS max_count 2127 LEFT JOIN (SELECT bed_height_id, COUNT(height) AS height_count, COUNT(min_height) AS min_count, COUNT(max_height) AS max_count
2128 FROM bed_height_values GROUP 2128 FROM bed_height_values
2129 BY bed_height_id 2129 WHERE (station BETWEEN (${fromkm}-0.0001) AND (${tokm}+0.0001))
2130 GROUP BY bed_height_id
2130 ) bhv ON bhs.id = bhv.bed_height_id 2131 ) bhv ON bhs.id = bhv.bed_height_id
2131 WHERE bhs.river_id = ${river_id} 2132 WHERE bhs.river_id = ${river_id}
2132 </dc:statement> 2133 </dc:statement>
2133 </dc:macro> 2134 </dc:macro>
2134 2135

http://dive4elements.wald.intevation.org