comparison artifacts/doc/conf/meta-data.xml @ 9506:8b7bf26b8782

Predefined artifact for standard vegetation zones. Some minor adaptions.
author gernotbelger
date Fri, 28 Sep 2018 13:44:12 +0200
parents 853f2dafc16e
children 4efaa2622c43
comparison
equal deleted inserted replaced
9505:3f230fe8eb19 9506:8b7bf26b8782
254 <dc:call-macro name="basedata_3_officials" /> 254 <dc:call-macro name="basedata_3_officials" />
255 <dc:call-macro name="basedata_4_heightmarks-points" /> 255 <dc:call-macro name="basedata_4_heightmarks-points" />
256 <dc:call-macro name="cross_sections" /> 256 <dc:call-macro name="cross_sections" />
257 <dc:call-macro name="basedata_5_flood-protections" /> 257 <dc:call-macro name="basedata_5_flood-protections" />
258 <dc:call-macro name="hyks" /> 258 <dc:call-macro name="hyks" />
259 <dc:call-macro name="predefined_vegetation_zones_cs" /> 259 <dc:call-macro name="predefined_vegetation_zones" />
260 </dc:when> 260 </dc:when>
261 <dc:comment> Duration curve </dc:comment> 261 <dc:comment> Duration curve </dc:comment>
262 <dc:when test="$out = 'duration_curve'"> 262 <dc:when test="$out = 'duration_curve'">
263 <dc:call-macro name="mainvalues" /> 263 <dc:call-macro name="mainvalues" />
264 <dc:call-macro name="basedata_2_fixations_relative_point" /> 264 <dc:call-macro name="basedata_2_fixations_relative_point" />
339 339
340 <dc:when test="$out = 'uinfo_salix_line'"> 340 <dc:when test="$out = 'uinfo_salix_line'">
341 <dc:call-macro name="longitudinal-section-prototype" /> 341 <dc:call-macro name="longitudinal-section-prototype" />
342 </dc:when> 342 </dc:when>
343 <dc:when test="$out = 'uinfo.inundation_duration.vegzoneselect'"> 343 <dc:when test="$out = 'uinfo.inundation_duration.vegzoneselect'">
344 <dc:variable name="vegzonedata" expr="dc:defaultvegetationzone($river)"></dc:variable> 344 <dc:call-macro name="predefined_vegetation_zones" />
345 <defaultVegetationZone factory="dummy" target_out="{$out}" data="{$vegzonedata}"></defaultVegetationZone>
346 </dc:when> 345 </dc:when>
347 <dc:when test="$out = 'bundu_wspl_longitudinal_section'"> 346 <dc:when test="$out = 'bundu_wspl_longitudinal_section'">
348 <dc:call-macro name="longitudinal-section-prototype" /> 347 <dc:call-macro name="longitudinal-section-prototype" />
349 </dc:when> 348 </dc:when>
350 <dc:when test="$out = 'bundu_depth_longitudinal_section'"> 349 <dc:when test="$out = 'bundu_depth_longitudinal_section'">
1329 </dc:for-each> 1328 </dc:for-each>
1330 </dc:context> 1329 </dc:context>
1331 </hyks> 1330 </hyks>
1332 </dc:macro> 1331 </dc:macro>
1333 1332
1334 <!-- Default Vegetation Zones --> 1333 <!-- Default Vegetation Zones -->
1335 <dc:macro name="predefined_vegetation_zones_cs"> 1334 <dc:macro name="predefined_vegetation_zones">
1336 <U-INFO> 1335 <uinfo>
1337 <vegetation_zones> 1336 <vegetation_zones>
1338 <dc:variable name="vegzonedata" expr="dc:defaultvegetationzone($river)"></dc:variable> 1337 <dc:variable name="vegzonedata" expr="dc:defaultvegetationzone($river)"/>
1339 <defaultVegetationZone factory="dummy" target_out="{$out}" data="{$vegzonedata}"/> 1338
1339 <defaultVegetationZone factory="predefined_vegetation_zonesf" target_out="{$out}" ids="{$vegzonedata}"/>
1340 </vegetation_zones> 1340 </vegetation_zones>
1341 </U-INFO> 1341 </uinfo>
1342 </dc:macro> 1342 </dc:macro>
1343 1343
1344 <!-- wst-data --> 1344 <!-- wst-data -->
1345 1345
1346 <!-- model-waterlevels --> 1346 <!-- model-waterlevels -->
3777 <dc:filter expr="$a_state = 'state.uinfo.vegetation_zones' and $facet_name = 'uinfo_facet_vegetation_zones_cross_section'"> <!--'uinfo_facet_vegetation_zones_cross_section'" > and $facet_name = 'csv'"> we misuse the csv-facet --> 3777 <dc:filter expr="$a_state = 'state.uinfo.vegetation_zones' and $facet_name = 'uinfo_facet_vegetation_zones_cross_section'"> <!--'uinfo_facet_vegetation_zones_cross_section'" > and $facet_name = 'csv'"> we misuse the csv-facet -->
3778 <dc:if test="dc:has-result()"> 3778 <dc:if test="dc:has-result()">
3779 <vegetation_zones> 3779 <vegetation_zones>
3780 <dc:for-each> 3780 <dc:for-each>
3781 <dc:variable name="vegzonedata" expr="dc:data_from_artifact($a_gid,'vegzones')" /> 3781 <dc:variable name="vegzonedata" expr="dc:data_from_artifact($a_gid,'vegzones')" />
3782 <dc:variable name="vegzonedatalabel" expr="dc:get('ld_from')" /> 3782 <dc:variable name="label_temp" type="string" expr="concat(dc:get('ld_f'), ' km - ', dc:get('ld_t'), ' km')" />
3783 <dc:variable name="label_temp" type="string" expr="dc:coalesce($collection_name, dc:toString($collection_gid))" />
3784 <dc:variable name="fromkm" type="number" expr="dc:fromValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_from'))" />
3785 <dc:variable name="tokm" type="number" expr="dc:fromValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_to'))" />
3786 3783
3787 <dc:element name="${facet_name}"> 3784 <dc:element name="${facet_name}">
3788 <dc:attribute name="factory" value="uinfo" /> 3785 <dc:attribute name="factory" value="uinfo" />
3789 <dc:attribute name="target_out" value="${out}" /> 3786 <dc:attribute name="target_out" value="${out}" />
3790 <dc:attribute name="description" value="${label_temp}" /> 3787 <dc:attribute name="description" value="${label_temp}" />
3791 <dc:attribute name="artifact-id" value="${a_gid}" /> 3788 <dc:attribute name="artifact-id" value="${a_gid}" />
3792 <dc:attribute name="out" value="${out_name}" /> 3789 <dc:attribute name="out" value="${out_name}" />
3793 <dc:attribute name="ids" value="${facet_num}" /> 3790 <dc:attribute name="ids" value="${facet_num}" />
3794 <!-- veg zones string as attribute --> 3791 <!-- veg zones string as attribute -->
3795 <dc:attribute name="data" value="${vegzonedata}" /> 3792 <dc:attribute name="data" value="${vegzonedata}" />
3796 <dc:attribute name="from_km" value="${fromkm}" />
3797 <dc:attribute name="to_km" value="${tokm}" />
3798 </dc:element> 3793 </dc:element>
3799 </dc:for-each> 3794 </dc:for-each>
3800 </vegetation_zones> 3795 </vegetation_zones>
3801 </dc:if> 3796 </dc:if>
3802 </dc:filter> 3797 </dc:filter>

http://dive4elements.wald.intevation.org