comparison flys-artifacts/doc/conf/meta-data.xml @ 5435:70026e3b6af3

Add buildings of kind 0 to data cage
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 26 Mar 2013 12:07:16 +0100
parents 5ca06120b918
children b582df0c7b00
comparison
equal deleted inserted replaced
5434:fd07bcaff880 5435:70026e3b6af3
1524 SELECT DISTINCT 1524 SELECT DISTINCT
1525 b.kind_id AS building_kind_id, 1525 b.kind_id AS building_kind_id,
1526 bk.name AS building_kind 1526 bk.name AS building_kind
1527 FROM buildings b 1527 FROM buildings b
1528 JOIN building_kinds bk ON b.kind_id = bk.id 1528 JOIN building_kinds bk ON b.kind_id = bk.id
1529 WHERE river_id = ${river_id} 1529 WHERE b.river_id = ${river_id}
1530 AND b.kind_id != 0
1530 </dc:statement> 1531 </dc:statement>
1531 <dc:elements> 1532 <dc:elements>
1532 <buildings> 1533 <buildings>
1533 <dc:attribute name="description" value="${building_kind}"/> 1534 <dc:attribute name="description" value="${building_kind}"/>
1534 <dc:attribute name="factory" value="wmsbuildingsfactory"/> 1535 <dc:attribute name="factory" value="wmsbuildingsfactory"/>
1535 <dc:attribute name="ids" value="${river_id};${building_kind};${building_kind_id}"/> 1536 <dc:attribute name="ids" value="${river_id};${building_kind};${building_kind_id}"/>
1536 </buildings> 1537 </buildings>
1538 </dc:elements>
1539 </dc:context>
1540 <dc:context>
1541 <dc:statement>
1542 SELECT DISTINCT
1543 b.kind_id AS building_kind_id,
1544 b.name AS building_name,
1545 bk.name AS building_kind
1546 FROM buildings b
1547 JOIN building_kinds bk ON b.kind_id = bk.id
1548 WHERE river_id = ${river_id}
1549 AND kind_id = 0 OR
1550 kind_id IS NULL
1551 </dc:statement>
1552 <dc:elements>
1553 <dc:element name="${building_kind}">
1554 <dc:elements>
1555 <buildings>
1556 <dc:attribute name="description" value="${building_name}"/>
1557 <dc:attribute name="factory" value="wmsbuildingsfactory"/>
1558 <dc:attribute name="ids" value="${river_id};${building_name}"/>
1559 </buildings>
1560 </dc:elements>
1561 </dc:element>
1537 </dc:elements> 1562 </dc:elements>
1538 </dc:context> 1563 </dc:context>
1539 </dc:macro> 1564 </dc:macro>
1540 <dc:macro name="flood-map-fixpoints"> 1565 <dc:macro name="flood-map-fixpoints">
1541 <dc:context> 1566 <dc:context>

http://dive4elements.wald.intevation.org