comparison artifacts/doc/conf/meta-data.xml @ 7851:b566cd0c025a

New macro for porosities in datacage config.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 30 Apr 2014 15:26:44 +0200
parents 1431d1af84d7
children 57bd0a586a9b
comparison
equal deleted inserted replaced
7850:63959d4f3c03 7851:b566cd0c025a
1301 <dc:call-macro name="yields"/> 1301 <dc:call-macro name="yields"/>
1302 <dc:call-macro name="densities"/> 1302 <dc:call-macro name="densities"/>
1303 <dc:call-macro name="minfo-heights"/> 1303 <dc:call-macro name="minfo-heights"/>
1304 <dc:call-macro name="sounding-width"/> 1304 <dc:call-macro name="sounding-width"/>
1305 <dc:call-macro name="morph_width"/> 1305 <dc:call-macro name="morph_width"/>
1306 <dc:call-macro name="porosities"/>
1306 <flow_velocities> 1307 <flow_velocities>
1307 <dc:call-macro name="flow_velocity_measurements"/> 1308 <dc:call-macro name="flow_velocity_measurements"/>
1308 <dc:call-macro name="flow_velocity_models"/> 1309 <dc:call-macro name="flow_velocity_models"/>
1309 </flow_velocities> 1310 </flow_velocities>
1310 </minfo> 1311 </minfo>
1322 <dc:call-macro name="bedquality"/> 1323 <dc:call-macro name="bedquality"/>
1323 <dc:call-macro name="flow-velocity"/> 1324 <dc:call-macro name="flow-velocity"/>
1324 <dc:call-macro name="sediment-load"/> 1325 <dc:call-macro name="sediment-load"/>
1325 </dc:macro> 1326 </dc:macro>
1326 1327
1328 <dc:macro name="porosities">
1329 <porosities>
1330 <dc:context>
1331 <dc:statement>
1332 SELECT DISTINCT
1333 p.id AS pid,
1334 p.description AS description,
1335 d.lower AS depth_lower,
1336 d.upper AS depth_upper
1337 FROM porosity p
1338 JOIN depths d ON p.depth_id = d.id
1339 JOIN porosity_values pv on pv.porosity_id = p.id
1340 WHERE p.river_id = ${river_id}
1341 GROUP BY p.id, p.description, d.upper, d.lower
1342 ORDER BY depth_lower, depth_upper
1343 </dc:statement>
1344 <dc:if test="dc:has-result()">
1345 <dc:for-each>
1346 <porosity description="{$depth_lower}-{$depth_upper} cm"
1347 factory="porosity"
1348 target_out="{$out}"
1349 info="{$description}"
1350 ids="{$pid}" />
1351 </dc:for-each>
1352 </dc:if>
1353 </dc:context>
1354 </porosities>
1355 </dc:macro>
1327 1356
1328 <dc:macro name="densities"> 1357 <dc:macro name="densities">
1329 <densities> 1358 <densities>
1330 <dc:context> 1359 <dc:context>
1331 <dc:statement> 1360 <dc:statement>

http://dive4elements.wald.intevation.org