Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/meta-data.xml @ 1875:4fb81eb8b45b
Extended dc conf.
flys-artifacts/trunk@3233 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 11 Nov 2011 07:59:42 +0000 |
parents | 841af55d5e53 |
children | d7369f395a80 |
comparison
equal
deleted
inserted
replaced
1874:68d0baa01c1b | 1875:4fb81eb8b45b |
---|---|
237 </columns> | 237 </columns> |
238 </flood-protection> | 238 </flood-protection> |
239 </dc:elements> | 239 </dc:elements> |
240 </dc:context> | 240 </dc:context> |
241 </flood-protections> | 241 </flood-protections> |
242 <extra-longitudinal-sections> | 242 <!-- base data --> |
243 <dc:attribute name="id" value="extra-longitudinal-sections-${river_id}"/> | 243 <dc:call-macro name="basedata_0"/> |
244 <dc:context> | 244 <!--extra-longitudinal-sections--> |
245 <dc:statement> | 245 <dc:call-macro name="basedata_1_additionals"/> |
246 SELECT id AS els_id, | 246 |
247 description AS els_description | 247 <!-- fixations --> |
248 FROM wsts WHERE kind = 1 AND river_id = ${river_id} | 248 <dc:call-macro name="basedata_2_fixations"/> |
249 </dc:statement> | 249 |
250 <dc:elements> | 250 <!-- flood water marks--> |
251 <extra-longitudinal-section> | 251 <dc:call-macro name="basedata_4_heightmarks-points"/> |
252 <dc:attribute name="name" value="${els_description}"/> | |
253 <dc:attribute name="db-id" value="${els_id}"/> | |
254 <columns> | |
255 <dc:context> | |
256 <dc:statement> | |
257 SELECT id AS els_column_id, | |
258 name AS els_column_name, | |
259 position AS els_rel_pos | |
260 FROM wst_columns WHERE wst_id = ${els_id} | |
261 ORDER by position | |
262 </dc:statement> | |
263 <dc:elements> | |
264 <column> | |
265 <dc:attribute name="name" value="${els_column_name}"/> | |
266 <dc:attribute name="ids" value="flood_protection-wstv-${els_rel_pos}-${els_id}"/> | |
267 <dc:attribute name="factory" value="staticwkms"/> | |
268 </column> | |
269 </dc:elements> | |
270 </dc:context> | |
271 </columns> | |
272 </extra-longitudinal-section> | |
273 </dc:elements> | |
274 </dc:context> | |
275 </extra-longitudinal-sections> | |
276 </dc:if> | 252 </dc:if> |
277 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve') and not (dc:contains($parameters, 'recommended'))"> | 253 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve') and not (dc:contains($parameters, 'recommended'))"> |
278 <discharge-table-nn> | 254 <discharge-table-nn> |
279 <discharge-table-gauge> | 255 <discharge-table-gauge> |
280 <dc:context> | 256 <dc:context> |
615 Show diffferences if longitudinal sections are there. | 591 Show diffferences if longitudinal sections are there. |
616 ----------------------------------------------------- | 592 ----------------------------------------------------- |
617 </dc:comment> | 593 </dc:comment> |
618 <dc:choose> | 594 <dc:choose> |
619 <dc:when test="dc:contains($artifact-outs, 'longitudinal_section')"> | 595 <dc:when test="dc:contains($artifact-outs, 'longitudinal_section')"> |
596 <differences> | |
620 <dc:context> | 597 <dc:context> |
621 <dc:statement> | 598 <dc:statement> |
622 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description | 599 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description |
623 FROM outs as o, facets as f, artifacts as a | 600 FROM outs as o, facets as f, artifacts as a |
624 WHERE f.name = 'w_differences' and f.out_id = o.id and o.artifact_id = a.id; | 601 WHERE f.name = 'w_differences' and f.out_id = o.id and o.artifact_id = a.id; |
625 </dc:statement> | 602 </dc:statement> |
626 <dc:elements> | 603 <dc:elements> |
627 <differences> | |
628 <dc:element name="${facet_name}"> | 604 <dc:element name="${facet_name}"> |
629 <dc:attribute name="description" value="${facet_description}"/> | 605 <dc:attribute name="description" value="${facet_description}"/> |
630 <dc:attribute name="factory" value="winfo"/> | 606 <dc:attribute name="factory" value="winfo"/> |
631 <dc:attribute name="artifact-id" value="${aid}"/> | 607 <dc:attribute name="artifact-id" value="${aid}"/> |
632 <dc:attribute name="ids" value="${aid}"/> | 608 <dc:attribute name="ids" value="${aid}"/> |
633 <dc:attribute name="out" value="w_differences"/> | 609 <dc:attribute name="out" value="w_differences"/> |
634 </dc:element> | 610 </dc:element> |
635 </differences> | |
636 </dc:elements> | 611 </dc:elements> |
637 </dc:context> | 612 </dc:context> |
613 </differences> | |
638 </dc:when> | 614 </dc:when> |
639 </dc:choose> | 615 </dc:choose> |
640 <old_calculations> | 616 <old_calculations> |
641 <dc:context connection="user"> | 617 <dc:context connection="user"> |
642 <dc:statement>SELECT u.id AS user_id, c.id AS collection_id, c.name as collection_name | 618 <dc:statement>SELECT u.id AS user_id, c.id AS collection_id, c.name as collection_name |
664 | 640 |
665 <dc:comment> | 641 <dc:comment> |
666 Import longitudinal sections only if the ${artifact-out} is defined as 'longitudinal_section' | 642 Import longitudinal sections only if the ${artifact-out} is defined as 'longitudinal_section' |
667 --------------------------------------------------------------------------------------------- | 643 --------------------------------------------------------------------------------------------- |
668 </dc:comment> | 644 </dc:comment> |
669 <dc:when test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))"> | 645 <dc:when test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'discharge_longitudinal_section') or (dc:contains($artifact-outs, 'w_differences')))"> |
670 <dc:context> | 646 <dc:context> |
671 <dc:statement> | 647 <dc:statement> |
672 SELECT id AS out_id | 648 SELECT id AS out_id |
673 FROM outs | 649 FROM outs |
674 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section' | 650 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section' |