Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/meta-data.xml @ 5496:23d8f2700b38
Add support for multiple floodplains and add them to the datacage accordingly
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 28 Mar 2013 12:39:14 +0100 |
parents | ae60bb7b8085 |
children | 87dab419b924 |
comparison
equal
deleted
inserted
replaced
5495:1488227b97b7 | 5496:23d8f2700b38 |
---|---|
1319 </land> | 1319 </land> |
1320 </dc:macro> | 1320 </dc:macro> |
1321 <dc:macro name="flood-map-floodplain"> | 1321 <dc:macro name="flood-map-floodplain"> |
1322 <dc:context> | 1322 <dc:context> |
1323 <dc:statement> | 1323 <dc:statement> |
1324 SELECT count(*) as km_exists | 1324 SELECT DISTINCT |
1325 FROM floodplain WHERE river_id = ${river_id} | 1325 fp.kind_id as kind_id, |
1326 </dc:statement> | 1326 flk.name as kind_name |
1327 <dc:elements> | 1327 FROM floodplain fp |
1328 <dc:if test="$km_exists>0"> | 1328 JOIN floodplain_kinds flk on fp.kind_id = flk.id |
1329 <floodplain> | 1329 WHERE river_id = ${river_id} |
1330 <dc:attribute name="factory" value="wmsfloodplainfactory"/> | 1330 AND kind_id=1 |
1331 <dc:attribute name="ids" value="${river_id}"/> | 1331 </dc:statement> |
1332 </floodplain> | 1332 <dc:if test="dc:has-result()"> |
1333 </dc:if> | 1333 <dc:elements> |
1334 </dc:elements> | 1334 <floody factory="wmsfloodplainfactory" |
1335 description="{$kind_name}" | |
1336 ids="{$river_id};{$kind_name};{$kind_id}"/> | |
1337 </dc:elements> | |
1338 </dc:if> | |
1339 </dc:context> | |
1340 <dc:context> | |
1341 <dc:statement> | |
1342 SELECT DISTINCT | |
1343 flk.name as kind_name, | |
1344 fp.kind_id as kind_id, | |
1345 fp.name as layer_name | |
1346 FROM floodplain fp | |
1347 JOIN floodplain_kinds flk on fp.kind_id = flk.id | |
1348 WHERE river_id = ${river_id} | |
1349 AND kind_id <> 1 | |
1350 </dc:statement> | |
1351 <dc:if test="dc:has-result()"> | |
1352 <other> | |
1353 <dc:elements> | |
1354 <floody factory="wmsfloodplainfactory" | |
1355 description="{$layer_name}" | |
1356 ids="{$river_id};{$layer_name};{$kind_id}"/> | |
1357 </dc:elements> | |
1358 </other> | |
1359 </dc:if> | |
1335 </dc:context> | 1360 </dc:context> |
1336 </dc:macro> | 1361 </dc:macro> |
1337 | 1362 |
1338 <dc:macro name="hwslines_by_kind"> | 1363 <dc:macro name="hwslines_by_kind"> |
1339 <dc:comment> | 1364 <dc:comment> |
1807 </hws> | 1832 </hws> |
1808 <route_data> | 1833 <route_data> |
1809 <dc:call-macro name="flood-map-routing"/> | 1834 <dc:call-macro name="flood-map-routing"/> |
1810 </route_data> | 1835 </route_data> |
1811 <hydrboundaries> | 1836 <hydrboundaries> |
1837 <dc:call-macro name="flood-map-floodplain"/> | |
1812 <dc:call-macro name="flood-map-hydr-boundaries"/> | 1838 <dc:call-macro name="flood-map-hydr-boundaries"/> |
1813 <dc:call-macro name="flood-map-floodplain"/> | |
1814 </hydrboundaries> | 1839 </hydrboundaries> |
1815 <dc:call-macro name="flood-map-uesk"/> | 1840 <dc:call-macro name="flood-map-uesk"/> |
1816 <gaugelocations> | 1841 <gaugelocations> |
1817 <dc:call-macro name="flood-map-gaugelocations"/> | 1842 <dc:call-macro name="flood-map-gaugelocations"/> |
1818 </gaugelocations> | 1843 </gaugelocations> |