comparison artifacts/doc/conf/meta-data.xml @ 9499:853f2dafc16e

VegetationZones in CrossSectionsDiagram
author gernotbelger
date Thu, 27 Sep 2018 18:06:26 +0200
parents bb278c927b66
children 8b7bf26b8782
comparison
equal deleted inserted replaced
9496:d8e753d0fdb9 9499:853f2dafc16e
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:when> 260 </dc:when>
260 <dc:comment> Duration curve </dc:comment> 261 <dc:comment> Duration curve </dc:comment>
261 <dc:when test="$out = 'duration_curve'"> 262 <dc:when test="$out = 'duration_curve'">
262 <dc:call-macro name="mainvalues" /> 263 <dc:call-macro name="mainvalues" />
263 <dc:call-macro name="basedata_2_fixations_relative_point" /> 264 <dc:call-macro name="basedata_2_fixations_relative_point" />
490 <dc:when test="$out = 'historical_discharge'"> 491 <dc:when test="$out = 'historical_discharge'">
491 <dc:call-macro name="historical-discharge-user" /> 492 <dc:call-macro name="historical-discharge-user" />
492 </dc:when> 493 </dc:when>
493 <dc:comment> Cross sections </dc:comment> 494 <dc:comment> Cross sections </dc:comment>
494 <dc:when test="$out = 'cross_section'"> 495 <dc:when test="$out = 'cross_section'">
495 <dc:call-macro name="waterlevels" /> 496 <dc:call-macro name="cross_section_user_content" />
496 </dc:when> 497 </dc:when>
497 <dc:comment> Duration curve </dc:comment> 498 <dc:comment> Duration curve </dc:comment>
498 <dc:when test="$out = 'duration_curve'"> 499 <dc:when test="$out = 'duration_curve'">
499 <dc:call-macro name="duration-curve" /> 500 <dc:call-macro name="duration-curve" />
500 </dc:when> 501 </dc:when>
501 <dc:comment> Reference curve </dc:comment> 502 <dc:comment> Reference curve </dc:comment>
510 <dc:call-macro name="flood-map" /> 511 <dc:call-macro name="flood-map" />
511 </dc:when> 512 </dc:when>
512 513
513 <dc:when test="$out = 'sinfo_flowdepth_waterlevels'"> 514 <dc:when test="$out = 'sinfo_flowdepth_waterlevels'">
514 <dc:call-macro name="longitudinal-section-fix-vollmer_w" /> 515 <dc:call-macro name="longitudinal-section-fix-vollmer_w" />
515 <!-- TODO: 'Frühere Berechnungen//Bezugswasserstände' -->
516 </dc:when> 516 </dc:when>
517 </dc:choose> 517 </dc:choose>
518 </dc:iterate> 518 </dc:iterate>
519 </dc:otherwise> 519 </dc:otherwise>
520 </dc:choose> 520 </dc:choose>
612 </dc:for-each> 612 </dc:for-each>
613 </floodmap> 613 </floodmap>
614 </dc:if> 614 </dc:if>
615 </dc:filter> 615 </dc:filter>
616 </dc:macro> 616 </dc:macro>
617
618 <dc:macro name="cross_section_user_content">
619 <dc:call-macro name="waterlevels" />
620 <dc:call-macro name="vegetationzones" />
621 </dc:macro>
617 622
618 <dc:macro name="waterlevels"> 623 <dc:macro name="waterlevels">
619 <dc:filter expr="$out_name = 'cross_section'"> 624 <dc:filter expr="$out_name = 'cross_section'">
620 <dc:if test="dc:has-result()"> 625 <dc:if test="dc:has-result()">
621 <waterlevels> 626 <waterlevels>
636 </dc:group> 641 </dc:group>
637 </waterlevels> 642 </waterlevels>
638 </dc:if> 643 </dc:if>
639 </dc:filter> 644 </dc:filter>
640 </dc:macro> 645 </dc:macro>
646
647
641 648
642 <dc:macro name="collection-group"> 649 <dc:macro name="collection-group">
643 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> 650 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)">
644 <dc:macro-body /> 651 <dc:macro-body />
645 </dc:group> 652 </dc:group>
1322 </dc:for-each> 1329 </dc:for-each>
1323 </dc:context> 1330 </dc:context>
1324 </hyks> 1331 </hyks>
1325 </dc:macro> 1332 </dc:macro>
1326 1333
1334 <!-- Default Vegetation Zones -->
1335 <dc:macro name="predefined_vegetation_zones_cs">
1336 <U-INFO>
1337 <vegetation_zones>
1338 <dc:variable name="vegzonedata" expr="dc:defaultvegetationzone($river)"></dc:variable>
1339 <defaultVegetationZone factory="dummy" target_out="{$out}" data="{$vegzonedata}"/>
1340 </vegetation_zones>
1341 </U-INFO>
1342 </dc:macro>
1327 1343
1328 <!-- wst-data --> 1344 <!-- wst-data -->
1329 1345
1330 <!-- model-waterlevels --> 1346 <!-- model-waterlevels -->
1331 <dc:macro name="basedata_0_macro"> 1347 <dc:macro name="basedata_0_macro">
3295 now TEXT fields. To properly fix / asses the problems here 3311 now TEXT fields. To properly fix / asses the problems here
3296 an SLT evaluation is needed. 3312 an SLT evaluation is needed.
3297 </dc:comment> 3313 </dc:comment>
3298 <dc:statement> 3314 <dc:statement>
3299 SELECT c.name AS collection_name, 3315 SELECT c.name AS collection_name,
3316 c.gid AS collection_gid,
3300 ma.id AS a_id, 3317 ma.id AS a_id,
3301 ma.state AS a_state, 3318 ma.state AS a_state,
3302 ma.gid AS a_gid, 3319 ma.gid AS a_gid,
3303 ma.creation AS a_creation, 3320 ma.creation AS a_creation,
3304 CAST(COALESCE(ma.ld_mode, '') AS VARCHAR(255)) AS ld_m, 3321 CAST(COALESCE(ma.ld_mode, '') AS VARCHAR(255)) AS ld_m,
3755 </dc:filter> 3772 </dc:filter>
3756 </dc:macro> 3773 </dc:macro>
3757 3774
3758 <!-- Vegetation zones, edited by the user --> 3775 <!-- Vegetation zones, edited by the user -->
3759 <dc:macro name="vegetationzones"> 3776 <dc:macro name="vegetationzones">
3760 <dc:filter expr="$a_state = 'state.uinfo.vegetation_zones' 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 -->
3761 <dc:if test="dc:has-result()"> 3778 <dc:if test="dc:has-result()">
3762 <dc:for-each> 3779 <vegetation_zones>
3763 <dc:variable name="vegzonedata" expr="dc:data_from_artifact($a_gid,'vegzones')" /> 3780 <dc:for-each>
3764 <dc:variable name="vegzonedatalabel" expr="dc:get('ld_from'))" /> 3781 <dc:variable name="vegzonedata" expr="dc:data_from_artifact($a_gid,'vegzones')" />
3765 <dc:variable name="label_temp" type="string" expr="dc:coalesce($collection_name, dc:toString($a_gid))" /> 3782 <dc:variable name="vegzonedatalabel" expr="dc:get('ld_from')" />
3766 <dc:variable name="fromkm" type="number" expr="dc:fromValue(dc:get('ld_mode'), 3783 <dc:variable name="label_temp" type="string" expr="dc:coalesce($collection_name, dc:toString($collection_gid))" />
3767 dc:get('ld_locations'), dc:get('ld_from'))" /> 3784 <dc:variable name="fromkm" type="number" expr="dc:fromValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_from'))" />
3768 <dc:variable name="tokm" type="number" expr="dc:fromValue(dc:get('ld_mode'), 3785 <dc:variable name="tokm" type="number" expr="dc:fromValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_to'))" />
3769 dc:get('ld_locations'), dc:get('ld_to'))" /> 3786
3770 <dc:element name="${facet_name}"> 3787 <dc:element name="${facet_name}">
3771 <dc:attribute name="factory" value="dummy" /> 3788 <dc:attribute name="factory" value="uinfo" />
3772 <dc:attribute name="target_out" value="${out}" /> 3789 <dc:attribute name="target_out" value="${out}" />
3773 <dc:attribute name="description" value="${label_temp}" /> 3790 <dc:attribute name="description" value="${label_temp}" />
3774 <!-- veg zones string as attribute --> 3791 <dc:attribute name="artifact-id" value="${a_gid}" />
3775 <dc:attribute name="data" value="${vegzonedata}" /> 3792 <dc:attribute name="out" value="${out_name}" />
3776 <dc:attribute name="from_km" value="${fromkm}" /> 3793 <dc:attribute name="ids" value="${facet_num}" />
3777 <dc:attribute name="to_km" value="${tokm}" /> 3794 <!-- veg zones string as attribute -->
3778 </dc:element> 3795 <dc:attribute name="data" value="${vegzonedata}" />
3779 </dc:for-each> 3796 <dc:attribute name="from_km" value="${fromkm}" />
3780 </dc:if> 3797 <dc:attribute name="to_km" value="${tokm}" />
3781 </dc:filter> 3798 </dc:element>
3782 </dc:macro> 3799 </dc:for-each>
3783 3800 </vegetation_zones>
3801 </dc:if>
3802 </dc:filter>
3803 </dc:macro>
3784 3804
3785 <!-- U-INFO --> 3805 <!-- U-INFO -->
3786 <dc:macro name="bundu_bezugswst"> 3806 <dc:macro name="bundu_bezugswst">
3787 <dc:filter 3807 <dc:filter
3788 expr="$a_state = 'state.bundu.wst' 3808 expr="$a_state = 'state.bundu.wst'

http://dive4elements.wald.intevation.org