Mercurial > dive4elements > river
diff flys-artifacts/doc/conf/meta-data.xml @ 1856:410e40b88c7a
Added new WMSCatchmentArtifact for displaying catchments in maps.
flys-artifacts/trunk@3203 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 09 Nov 2011 16:28:29 +0000 |
parents | b4798f15edc7 |
children | 7fc87a67e6f7 |
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml Wed Nov 09 16:07:07 2011 +0000 +++ b/flys-artifacts/doc/conf/meta-data.xml Wed Nov 09 16:28:29 2011 +0000 @@ -549,6 +549,22 @@ </dc:elements> </dc:context> </dc:macro> + <dc:macro name="flood-map-catchments"> + <dc:context> + <dc:statement> + SELECT count(*) as km_exists + FROM catchment WHERE river_id = ${river_id} + </dc:statement> + <dc:elements> + <dc:if test="$km_exists>0"> + <catchments> + <dc:attribute name="factory" value="wmscatchmentfactory"/> + <dc:attribute name="ids" value="${river_id}"/> + </catchments> + </dc:if> + </dc:elements> + </dc:context> + </dc:macro> <dc:macro name="flood-map-complete"> <kilometrage> <riveraxis> @@ -558,6 +574,7 @@ <dc:call-macro name="flood-map-km"/> <dc:call-macro name="flood-map-qps"/> <dc:call-macro name="flood-map-hws"/> + <dc:call-macro name="flood-map-catchments"/> </kilometrage> <rastermap> <background>