comparison flys-artifacts/doc/conf/meta-data.xml @ 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 15476d76b6f9
children a8cc4ebdd0bb
comparison
equal deleted inserted replaced
5618:d03171f66511 5619:51208225eb41
1191 <dc:call-macro name="flood-map-hydr-boundaries-state"/> 1191 <dc:call-macro name="flood-map-hydr-boundaries-state"/>
1192 </federal> 1192 </federal>
1193 </dc:macro> 1193 </dc:macro>
1194 1194
1195 <dc:macro name="flood-map-floodplain"> 1195 <dc:macro name="flood-map-floodplain">
1196 <dc:context> 1196 <floodplain>
1197 <dc:statement> 1197 <dc:context>
1198 SELECT DISTINCT 1198 <dc:statement>
1199 fp.kind_id AS kind_id, 1199 SELECT DISTINCT
1200 flk.name AS kind_name 1200 fp.kind_id AS kind_id,
1201 FROM floodplain fp 1201 flk.name AS kind_name
1202 JOIN floodplain_kinds flk on fp.kind_id = flk.id 1202 FROM floodplain fp
1203 WHERE river_id = ${river_id} 1203 JOIN floodplain_kinds flk on fp.kind_id = flk.id
1204 AND kind_id=1 1204 WHERE river_id = ${river_id}
1205 </dc:statement> 1205 AND kind_id=1
1206 <dc:if test="dc:has-result()"> 1206 </dc:statement>
1207 <dc:for-each> 1207 <dc:if test="dc:has-result()">
1208 <floody factory="wmsfloodplainfactory"
1209 description="{$kind_name}"
1210 ids="{$river_id};{$kind_name};{$kind_id}"/>
1211 </dc:for-each>
1212 </dc:if>
1213 </dc:context>
1214 <dc:context>
1215 <dc:statement>
1216 SELECT DISTINCT
1217 flk.name AS kind_name,
1218 fp.kind_id AS kind_id,
1219 fp.name AS layer_name
1220 FROM floodplain fp
1221 JOIN floodplain_kinds flk on fp.kind_id = flk.id
1222 WHERE river_id = ${river_id}
1223 AND kind_id &lt;&gt; 1
1224 </dc:statement>
1225 <dc:if test="dc:has-result()">
1226 <other>
1227 <dc:for-each> 1208 <dc:for-each>
1228 <floody factory="wmsfloodplainfactory" 1209 <floody factory="wmsfloodplainfactory"
1229 description="{$layer_name}" 1210 description="{$kind_name}"
1230 ids="{$river_id};{$layer_name};{$kind_id}"/> 1211 ids="{$river_id};{$kind_name};{$kind_id}"/>
1231 </dc:for-each> 1212 </dc:for-each>
1232 </other> 1213 </dc:if>
1233 </dc:if> 1214 </dc:context>
1234 </dc:context> 1215 <dc:context>
1216 <dc:statement>
1217 SELECT DISTINCT
1218 flk.name AS kind_name,
1219 fp.kind_id AS kind_id,
1220 fp.name AS layer_name
1221 FROM floodplain fp
1222 JOIN floodplain_kinds flk on fp.kind_id = flk.id
1223 WHERE river_id = ${river_id}
1224 AND kind_id &lt;&gt; 1
1225 </dc:statement>
1226 <dc:if test="dc:has-result()">
1227 <other>
1228 <dc:for-each>
1229 <floody factory="wmsfloodplainfactory"
1230 description="{$layer_name}"
1231 ids="{$river_id};{$layer_name};{$kind_id}"/>
1232 </dc:for-each>
1233 </other>
1234 </dc:if>
1235 </dc:context>
1236 </floodplain>
1235 </dc:macro> 1237 </dc:macro>
1236 1238
1237 <dc:macro name="hwslines_by_kind"> 1239 <dc:macro name="hwslines_by_kind">
1238 <dc:comment> 1240 <dc:comment>
1239 Call from a context where fed_name hws_kind hws_name and river_id is 1241 Call from a context where fed_name hws_kind hws_name and river_id is

http://dive4elements.wald.intevation.org