comparison artifacts/doc/conf/meta-data.xml @ 8101:54dfdba4c4c5

Distinction by measurement station gives lots of duplicates, as we always get a whole longitudinal section.
author "Tom Gottfried <tom@intevation.de>"
date Tue, 19 Aug 2014 18:46:13 +0200
parents 1d2a9c5ee97b
children 9ff5fd9bccfa
comparison
equal deleted inserted replaced
8100:786bb4f87e8d 8101:54dfdba4c4c5
1405 </dc:if> 1405 </dc:if>
1406 </dc:context> 1406 </dc:context>
1407 </densities> 1407 </densities>
1408 </dc:macro> 1408 </dc:macro>
1409 1409
1410 <dc:comment> TODO aheinecke: This is a load of data. Needs grouping desperately. And te kidn in the ids;2 field </dc:comment> 1410 <dc:comment> TODO aheinecke: Needs the kind in the ids;2 field </dc:comment>
1411 <dc:comment> TODO aheinecke: Does seperation by Id even make sense here? Is not a year filter required?</dc:comment> 1411 <dc:comment> TODO aheinecke: Does seperation by Id even make sense here? Is not a year filter required?</dc:comment>
1412 <dc:macro name="one-load"> 1412 <dc:macro name="one-load">
1413 <dc:variable name="syear" type="string" expr="dc:date-format('yyyy', $year)"/> 1413 <dc:variable name="syear" type="string" expr="dc:date-format('yyyy', $year)"/>
1414 <year description="{$station_name} - {$syear}" 1414 <year description="{$syear}"
1415 factory="sedimentload" 1415 factory="sedimentload"
1416 target_out="{$out}" 1416 target_out="{$out}"
1417 info="{$description}" 1417 info="{$description}"
1418 ids="{$syid};{$station_name} - {$syear}" /> 1418 ids="{$syid};{$station_name} - {$syear}" />
1419 </dc:macro> 1419 </dc:macro>
1420 1420
1421 <dc:comment> TODO aheinecke: This is a load of data. Needs grouping desperately. And the kind in the name</dc:comment> 1421 <dc:comment> TODO aheinecke: Needs the kind in the name</dc:comment>
1422 <dc:macro name="epoch-load"> 1422 <dc:macro name="epoch-load">
1423 <dc:variable name="syear" type="string" expr="dc:date-format('yyyy', $startyear)"/> 1423 <dc:variable name="syear" type="string" expr="dc:date-format('yyyy', $startyear)"/>
1424 <dc:variable name="eyear" type="string" expr="dc:date-format('yyyy', $endyear)"/> 1424 <dc:variable name="eyear" type="string" expr="dc:date-format('yyyy', $endyear)"/>
1425 <year description="{$station_name} - {$syear}-{$eyear}" 1425 <year description="{$syear}-{$eyear}"
1426 factory="sedimentload" 1426 factory="sedimentload"
1427 target_out="{$out}" 1427 target_out="{$out}"
1428 info="{$description}" 1428 info="{$description}"
1429 ids="{$syid};{$station_name} - {$syear}-{$eyear}" /> 1429 ids="{$syid};{$station_name} - {$syear}-{$eyear}" />
1430 </dc:macro> 1430 </dc:macro>
1476 <dc:statement> 1476 <dc:statement>
1477 SELECT DISTINCT 1477 SELECT DISTINCT
1478 sy.id AS syid, 1478 sy.id AS syid,
1479 sy.description AS description, 1479 sy.description AS description,
1480 ti.start_time AS year, 1480 ti.start_time AS year,
1481 gf.name AS fraction, 1481 gf.name AS fraction
1482 ms.name AS station_name
1483 FROM sediment_load sy 1482 FROM sediment_load sy
1484 JOIN sediment_load_values syv 1483 JOIN sediment_load_values syv
1485 ON sy.id = syv.sediment_load_id 1484 ON sy.id = syv.sediment_load_id
1486 JOIN measurement_station ms 1485 JOIN measurement_station ms
1487 ON ms.id = syv.measurement_station_id 1486 ON ms.id = syv.measurement_station_id
1504 SELECT DISTINCT 1503 SELECT DISTINCT
1505 sy.id AS syid, 1504 sy.id AS syid,
1506 sy.description AS description, 1505 sy.description AS description,
1507 ti.start_time AS startyear, 1506 ti.start_time AS startyear,
1508 ti.stop_time AS endyear, 1507 ti.stop_time AS endyear,
1509 ms.name AS station_name,
1510 gf.name AS fraction 1508 gf.name AS fraction
1511 FROM sediment_load sy 1509 FROM sediment_load sy
1512 JOIN sediment_load_values syv 1510 JOIN sediment_load_values syv
1513 ON sy.id = syv.sediment_load_id 1511 ON sy.id = syv.sediment_load_id
1514 JOIN measurement_station ms 1512 JOIN measurement_station ms

http://dive4elements.wald.intevation.org