Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/meta-data.xml @ 5377:a5f5599f6fd5 2.9.14
merge
author | Bettina Gruenbauer <bettina@intevation.de> |
---|---|
date | Fri, 22 Mar 2013 11:02:08 +0100 |
parents | f099ca10684e |
children | 08262e0ce57a |
comparison
equal
deleted
inserted
replaced
5376:9b2482a3b9fe | 5377:a5f5599f6fd5 |
---|---|
717 <dc:comment> | 717 <dc:comment> |
718 Recommendations (client shall load immediately). | 718 Recommendations (client shall load immediately). |
719 </dc:comment> | 719 </dc:comment> |
720 <dc:if test="dc:contains($artifact-outs, 'w_differences') or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))"> | 720 <dc:if test="dc:contains($artifact-outs, 'w_differences') or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))"> |
721 <dc:call-macro name="annotations"/> | 721 <dc:call-macro name="annotations"/> |
722 </dc:if> | |
723 <dc:if test="dc:contains($artifact-outs, 'historical_discharge_wq')"> | |
724 <dc:call-macro name="mainvalues"/> | |
722 </dc:if> | 725 </dc:if> |
723 <dc:if test="dc:contains($artifact-outs, 'cross_section')"> | 726 <dc:if test="dc:contains($artifact-outs, 'cross_section')"> |
724 <dc:call-macro name="cross_sections"/> | 727 <dc:call-macro name="cross_sections"/> |
725 <dc:call-macro name="hyks"/> | 728 <dc:call-macro name="hyks"/> |
726 </dc:if> | 729 </dc:if> |
1258 </floodplain> | 1261 </floodplain> |
1259 </dc:if> | 1262 </dc:if> |
1260 </dc:elements> | 1263 </dc:elements> |
1261 </dc:context> | 1264 </dc:context> |
1262 </dc:macro> | 1265 </dc:macro> |
1266 | |
1267 <dc:macro name="hwslines_by_kind"> | |
1268 <dc:comment> | |
1269 Call from a context where fed_name hws_kind hws_name and river_id is | |
1270 availble | |
1271 </dc:comment> | |
1272 <Durchlass> | |
1273 <dc:elements filter="$hws_kind=1"> | |
1274 <hws> | |
1275 <dc:attribute name="factory" value="wmshwslinesfactory"/> | |
1276 <dc:attribute name="ids" value="${river_id};${hws_name}"/> | |
1277 <dc:attribute name="name" value="${hws_name}"/> | |
1278 </hws> | |
1279 </dc:elements> | |
1280 </Durchlass> | |
1281 <Damm> | |
1282 <dc:elements filter="$hws_kind=2"> | |
1283 <hws> | |
1284 <dc:attribute name="factory" value="wmshwslinesfactory"/> | |
1285 <dc:attribute name="ids" value="${river_id};${hws_name}"/> | |
1286 <dc:attribute name="name" value="${hws_name}"/> | |
1287 </hws> | |
1288 </dc:elements> | |
1289 </Damm> | |
1290 <Graben> | |
1291 <dc:elements filter="$hws_kind=3"> | |
1292 <hws> | |
1293 <dc:attribute name="factory" value="wmshwslinesfactory"/> | |
1294 <dc:attribute name="ids" value="${river_id};${hws_name}"/> | |
1295 <dc:attribute name="name" value="${hws_name}"/> | |
1296 </hws> | |
1297 </dc:elements> | |
1298 </Graben> | |
1299 </dc:macro> | |
1300 | |
1263 <dc:macro name="hwslines"> | 1301 <dc:macro name="hwslines"> |
1264 <dc:context> | 1302 <hws_lines> |
1265 <dc:statement> | 1303 <official> |
1266 SELECT count(*) as km_exists, name as name | 1304 <dc:context> |
1267 FROM hws_lines WHERE river_id = ${river_id} GROUP BY name | 1305 <dc:statement> |
1268 </dc:statement> | 1306 SELECT DISTINCT |
1269 <dc:elements> | 1307 fs.name AS fed_name, |
1270 <dc:if test="$km_exists>0"> | 1308 fs.id AS fed_id |
1271 <line> | 1309 FROM hws_lines hws |
1272 <dc:attribute name="factory" value="wmshwslinesfactory"/> | 1310 JOIN fed_states fs ON hws.fed_state_id = fs.id |
1273 <dc:attribute name="ids" value="${river_id};${name}"/> | 1311 WHERE river_id = ${river_id} |
1274 <dc:attribute name="name" value="${name}"/> | 1312 AND hws.official=1 |
1275 </line> | 1313 </dc:statement> |
1276 </dc:if> | 1314 <dc:elements> |
1315 <dc:context> | |
1316 <dc:statement> | |
1317 SELECT DISTINCT | |
1318 name AS hws_name, | |
1319 kind_id AS hws_kind | |
1320 FROM hws_lines | |
1321 WHERE river_id = ${river_id} | |
1322 AND official=1 | |
1323 AND fed_state_id = ${fed_id} ORDER BY name | |
1324 </dc:statement> | |
1325 <fedstate> | |
1326 <dc:attribute name="description" value="${fed_name}"/> | |
1327 <dc:call-macro name="hwslines_by_kind"/> | |
1328 </fedstate> | |
1329 </dc:context> | |
1330 </dc:elements> | |
1331 </dc:context> | |
1332 <dc:context> | |
1333 <dc:statement> | |
1334 SELECT distinct | |
1335 name AS hws_name, | |
1336 kind_id AS hws_kind | |
1337 FROM hws_lines | |
1338 WHERE river_id = ${river_id} | |
1339 AND official=1 | |
1340 AND fed_state_id IS NULL | |
1341 ORDER BY name | |
1342 </dc:statement> | |
1343 <hws_fed_unknown> | |
1344 <dc:call-macro name="hwslines_by_kind"/> | |
1345 </hws_fed_unknown> | |
1346 </dc:context> | |
1347 </official> | |
1348 <inofficial> | |
1349 <dc:context> | |
1350 <dc:statement> | |
1351 SELECT DISTINCT | |
1352 fs.name AS fed_name, | |
1353 fs.id AS fed_id | |
1354 FROM hws_lines hws | |
1355 JOIN fed_states fs ON hws.fed_state_id = fs.id | |
1356 WHERE river_id = ${river_id} | |
1357 AND hws.official=0 | |
1358 </dc:statement> | |
1359 <dc:elements> | |
1360 <dc:context> | |
1361 <dc:statement> | |
1362 SELECT DISTINCT | |
1363 name AS hws_name, | |
1364 kind_id AS hws_kind | |
1365 FROM hws_lines | |
1366 WHERE river_id = ${river_id} | |
1367 AND official=0 | |
1368 AND fed_state_id = ${fed_id} ORDER BY name | |
1369 </dc:statement> | |
1370 <fedstate> | |
1371 <dc:attribute name="description" value="${fed_name}"/> | |
1372 <dc:call-macro name="hwslines_by_kind"/> | |
1373 </fedstate> | |
1374 </dc:context> | |
1375 </dc:elements> | |
1376 </dc:context> | |
1377 <dc:context> | |
1378 <dc:statement> | |
1379 SELECT distinct | |
1380 name AS hws_name, | |
1381 kind_id AS hws_kind | |
1382 FROM hws_lines | |
1383 WHERE river_id = ${river_id} | |
1384 AND official=0 | |
1385 AND fed_state_id IS NULL ORDER BY name | |
1386 </dc:statement> | |
1387 <hws_fed_unknown> | |
1388 <dc:call-macro name="hwslines_by_kind"/> | |
1389 </hws_fed_unknown> | |
1390 </dc:context> | |
1391 </inofficial> | |
1392 </hws_lines> | |
1393 </dc:macro> | |
1394 | |
1395 <dc:macro name="hwspoints_by_kind"> | |
1396 <dc:comment> | |
1397 Call from a context where fed_name hws_kind hws_name and river_id is | |
1398 availble | |
1399 </dc:comment> | |
1400 <Durchlass> | |
1401 <dc:elements filter="$hws_kind=1"> | |
1402 <hws> | |
1403 <dc:attribute name="factory" value="wmshwspointsfactory"/> | |
1404 <dc:attribute name="ids" value="${river_id};${hws_name}"/> | |
1405 <dc:attribute name="name" value="${hws_name}"/> | |
1406 </hws> | |
1277 </dc:elements> | 1407 </dc:elements> |
1278 </dc:context> | 1408 </Durchlass> |
1409 <Damm> | |
1410 <dc:elements filter="$hws_kind=2"> | |
1411 <hws> | |
1412 <dc:attribute name="factory" value="wmshwspointsfactory"/> | |
1413 <dc:attribute name="ids" value="${river_id};${hws_name}"/> | |
1414 <dc:attribute name="name" value="${hws_name}"/> | |
1415 </hws> | |
1416 </dc:elements> | |
1417 </Damm> | |
1418 <Graben> | |
1419 <dc:elements filter="$hws_kind=3"> | |
1420 <hws> | |
1421 <dc:attribute name="factory" value="wmshwspointsfactory"/> | |
1422 <dc:attribute name="ids" value="${river_id};${hws_name}"/> | |
1423 <dc:attribute name="name" value="${hws_name}"/> | |
1424 </hws> | |
1425 </dc:elements> | |
1426 </Graben> | |
1279 </dc:macro> | 1427 </dc:macro> |
1428 | |
1280 <dc:macro name="hwspoints"> | 1429 <dc:macro name="hwspoints"> |
1281 <dc:context> | 1430 <hws_points> |
1282 <dc:statement> | 1431 <official> |
1283 SELECT count(*) as km_exists, name as name | 1432 <dc:context> |
1284 FROM hws_points WHERE river_id = ${river_id} GROUP BY name | 1433 <dc:statement> |
1285 </dc:statement> | 1434 SELECT DISTINCT |
1286 <dc:elements> | 1435 fs.name AS fed_name, |
1287 <dc:if test="$km_exists>0"> | 1436 fs.id AS fed_id |
1288 <line> | 1437 FROM hws_points hws |
1289 <dc:attribute name="factory" value="wmshwspointsfactory"/> | 1438 JOIN fed_states fs ON hws.fed_state_id = fs.id |
1290 <dc:attribute name="ids" value="${river_id};${name}"/> | 1439 WHERE river_id = ${river_id} |
1291 <dc:attribute name="name" value="${name}"/> | 1440 AND hws.official=1 |
1292 </line> | 1441 </dc:statement> |
1293 </dc:if> | 1442 <dc:elements> |
1294 </dc:elements> | 1443 <dc:context> |
1295 </dc:context> | 1444 <dc:statement> |
1296 </dc:macro> | 1445 SELECT DISTINCT |
1446 name AS hws_name, | |
1447 kind_id AS hws_kind | |
1448 FROM hws_points | |
1449 WHERE river_id = ${river_id} | |
1450 AND official=1 | |
1451 AND fed_state_id = ${fed_id} ORDER BY name | |
1452 </dc:statement> | |
1453 <fedstate> | |
1454 <dc:attribute name="description" value="${fed_name}"/> | |
1455 <dc:call-macro name="hwspoints_by_kind"/> | |
1456 </fedstate> | |
1457 </dc:context> | |
1458 </dc:elements> | |
1459 </dc:context> | |
1460 <dc:context> | |
1461 <dc:statement> | |
1462 SELECT distinct | |
1463 name AS hws_name, | |
1464 kind_id AS hws_kind | |
1465 FROM hws_points | |
1466 WHERE river_id = ${river_id} | |
1467 AND official=1 | |
1468 AND fed_state_id IS NULL | |
1469 ORDER BY name | |
1470 </dc:statement> | |
1471 <hws_fed_unknown> | |
1472 <dc:call-macro name="hwspoints_by_kind"/> | |
1473 </hws_fed_unknown> | |
1474 </dc:context> | |
1475 </official> | |
1476 <inofficial> | |
1477 <dc:context> | |
1478 <dc:statement> | |
1479 SELECT DISTINCT | |
1480 fs.name AS fed_name, | |
1481 fs.id AS fed_id | |
1482 FROM hws_points hws | |
1483 JOIN fed_states fs ON hws.fed_state_id = fs.id | |
1484 WHERE river_id = ${river_id} | |
1485 AND hws.official=0 | |
1486 </dc:statement> | |
1487 <dc:elements> | |
1488 <dc:context> | |
1489 <dc:statement> | |
1490 SELECT DISTINCT | |
1491 name AS hws_name, | |
1492 kind_id AS hws_kind | |
1493 FROM hws_points | |
1494 WHERE river_id = ${river_id} | |
1495 AND official=0 | |
1496 AND fed_state_id = ${fed_id} ORDER BY name | |
1497 </dc:statement> | |
1498 <fedstate> | |
1499 <dc:attribute name="description" value="${fed_name}"/> | |
1500 <dc:call-macro name="hwspoints_by_kind"/> | |
1501 </fedstate> | |
1502 </dc:context> | |
1503 </dc:elements> | |
1504 </dc:context> | |
1505 <dc:context> | |
1506 <dc:statement> | |
1507 SELECT distinct | |
1508 name AS hws_name, | |
1509 kind_id AS hws_kind | |
1510 FROM hws_points | |
1511 WHERE river_id = ${river_id} | |
1512 AND official=0 | |
1513 AND fed_state_id IS NULL ORDER BY name | |
1514 </dc:statement> | |
1515 <hws_fed_unknown> | |
1516 <dc:call-macro name="hwspoints_by_kind"/> | |
1517 </hws_fed_unknown> | |
1518 </dc:context> | |
1519 </inofficial> | |
1520 </hws_points> | |
1521 </dc:macro> | |
1522 | |
1523 | |
1297 <dc:macro name="flood-map-buildings"> | 1524 <dc:macro name="flood-map-buildings"> |
1298 <dc:context> | 1525 <dc:context> |
1299 <dc:statement> | 1526 <dc:statement> |
1300 SELECT count(*) as km_exists, name as name | 1527 SELECT count(*) as km_exists, name as name |
1301 FROM buildings WHERE river_id = ${river_id} GROUP BY name | 1528 FROM buildings WHERE river_id = ${river_id} GROUP BY name |
1452 </riveraxis> | 1679 </riveraxis> |
1453 <dc:call-macro name="flood-map-km"/> | 1680 <dc:call-macro name="flood-map-km"/> |
1454 <dc:call-macro name="flood-map-qps"/> | 1681 <dc:call-macro name="flood-map-qps"/> |
1455 </kilometrage> | 1682 </kilometrage> |
1456 <hws> | 1683 <hws> |
1457 <hws_lines> | 1684 <dc:call-macro name="hwslines"/> |
1458 <dc:call-macro name="hwslines"/> | 1685 <dc:call-macro name="hwspoints"/> |
1459 </hws_lines> | |
1460 <hws_points> | |
1461 <dc:call-macro name="hwspoints"/> | |
1462 </hws_points> | |
1463 </hws> | 1686 </hws> |
1464 <dc:call-macro name="flood-map-uesk"/> | 1687 <dc:call-macro name="flood-map-uesk"/> |
1465 <gaugelocations> | 1688 <gaugelocations> |
1466 <dc:call-macro name="flood-map-gaugelocations"/> | 1689 <dc:call-macro name="flood-map-gaugelocations"/> |
1467 </gaugelocations> | 1690 </gaugelocations> |