Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 7406:91ff42699f58
(issue965) Add a comment to explain what we do here
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 21 Oct 2013 19:05:41 +0200 |
parents | 350057df635b |
children | 8be4eb02b432 |
comparison
equal
deleted
inserted
replaced
7405:350057df635b | 7406:91ff42699f58 |
---|---|
1666 <background factory="wmsbackground" ids="{$river_id}" target_out="{$out}" /> | 1666 <background factory="wmsbackground" ids="{$river_id}" target_out="{$out}" /> |
1667 </rastermap> | 1667 </rastermap> |
1668 </dc:macro> | 1668 </dc:macro> |
1669 | 1669 |
1670 <dc:macro name="minfo-heights"> | 1670 <dc:macro name="minfo-heights"> |
1671 <dc:commment> | |
1672 The input here is a list differenc ids noted in the | |
1673 form: | |
1674 [2726deb8-e71f-4acc-bc57-c7ae6062df2e;bedheight;0;FP-Mai2006vHW]# | |
1675 [df79ba16-7e2a-43d6-b15b-34dca1fd9bff;bedheight;0;FP-2007_0-286]# | |
1676 [027ba0ac-5453-4e63-a99b-1feeb82a4e06;bedheight;0;QP-2002nHW]# | |
1677 [26b9b6eb-1ce5-4011-83c7-b88e15e99870;bedheight;0;FP-Nov2008] | |
1678 | |
1679 (Linebreaks inserted for readability) | |
1680 | |
1681 We take this string and look for all 4 digit numbers (\d{4}) after | |
1682 we have removed the uuids from the input string (dc:replace all). | |
1683 On this list of numbers we use the dc:min/max-number functions to | |
1684 get the extreme values and interpret the result as a number. | |
1685 </dc:comment> | |
1671 <dc:variable name="year_from" expr=" | 1686 <dc:variable name="year_from" expr=" |
1672 dc:min-number( | 1687 dc:min-number( |
1673 dc:find-all( | 1688 dc:find-all( |
1674 '\d{4}', | 1689 '\d{4}', |
1675 dc:replace-all( | 1690 dc:replace-all( |
1676 $diffids, '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}', '')))" | 1691 $diffids, '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}', '')))" |
1677 type="number"/> | 1692 type="number"/> |
1678 <dc:variable name="year_to" expr=" | 1693 <dc:variable name="year_to" expr=" |
1679 dc:max-number( | 1694 dc:max-number( |
1680 dc:find-all( | 1695 dc:find-all( |
1681 '\d{4}', | 1696 '\d{4}', |