changeset 5619:51208225eb41

Move floodplain into its own directory and reindent
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 09 Apr 2013 17:59:14 +0200
parents d03171f66511
children 6602be8ca685
files flys-artifacts/doc/conf/meta-data.xml
diffstat 1 files changed, 38 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Tue Apr 09 17:32:01 2013 +0200
+++ b/flys-artifacts/doc/conf/meta-data.xml	Tue Apr 09 17:59:14 2013 +0200
@@ -1193,45 +1193,47 @@
           </dc:macro>
 
           <dc:macro name="flood-map-floodplain">
-            <dc:context>
-              <dc:statement>
-                SELECT DISTINCT
-                fp.kind_id AS kind_id,
-                flk.name AS kind_name
-                FROM floodplain fp
-                JOIN floodplain_kinds flk on fp.kind_id = flk.id
-                WHERE river_id = ${river_id}
-                AND kind_id=1
-              </dc:statement>
-              <dc:if test="dc:has-result()">
-                <dc:for-each>
-                  <floody factory="wmsfloodplainfactory"
-                          description="{$kind_name}"
-                          ids="{$river_id};{$kind_name};{$kind_id}"/>
-                </dc:for-each>
-              </dc:if>
-            </dc:context>
-            <dc:context>
-              <dc:statement>
-                SELECT DISTINCT
-                flk.name AS kind_name,
-                fp.kind_id AS kind_id,
-                fp.name AS layer_name
-                FROM floodplain fp
-                JOIN floodplain_kinds flk on fp.kind_id = flk.id
-                WHERE river_id = ${river_id}
-                AND kind_id &lt;&gt; 1
-              </dc:statement>
-              <dc:if test="dc:has-result()">
-                <other>
+            <floodplain>
+              <dc:context>
+                <dc:statement>
+                  SELECT DISTINCT
+                  fp.kind_id AS kind_id,
+                  flk.name AS kind_name
+                  FROM floodplain fp
+                  JOIN floodplain_kinds flk on fp.kind_id = flk.id
+                  WHERE river_id = ${river_id}
+                  AND kind_id=1
+                </dc:statement>
+                <dc:if test="dc:has-result()">
                   <dc:for-each>
                     <floody factory="wmsfloodplainfactory"
-                            description="{$layer_name}"
-                            ids="{$river_id};{$layer_name};{$kind_id}"/>
+                      description="{$kind_name}"
+                      ids="{$river_id};{$kind_name};{$kind_id}"/>
                   </dc:for-each>
-                </other>
-              </dc:if>
-            </dc:context>
+                </dc:if>
+              </dc:context>
+              <dc:context>
+                <dc:statement>
+                  SELECT DISTINCT
+                  flk.name AS kind_name,
+                  fp.kind_id AS kind_id,
+                  fp.name AS layer_name
+                  FROM floodplain fp
+                  JOIN floodplain_kinds flk on fp.kind_id = flk.id
+                  WHERE river_id = ${river_id}
+                  AND kind_id &lt;&gt; 1
+                </dc:statement>
+                <dc:if test="dc:has-result()">
+                  <other>
+                    <dc:for-each>
+                      <floody factory="wmsfloodplainfactory"
+                        description="{$layer_name}"
+                        ids="{$river_id};{$layer_name};{$kind_id}"/>
+                    </dc:for-each>
+                  </other>
+                </dc:if>
+              </dc:context>
+            </floodplain>
           </dc:macro>
 
           <dc:macro name="hwslines_by_kind">

http://dive4elements.wald.intevation.org