changeset 3893:cfed96c53e9a

Return also the river and gauge info-url in a service response flys-artifacts/trunk@5549 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 21 Sep 2012 09:57:41 +0000
parents 1dc658c3306b
children 4aadcb90dc77
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Sep 21 09:22:51 2012 +0000
+++ b/flys-artifacts/ChangeLog	Fri Sep 21 09:57:41 2012 +0000
@@ -1,3 +1,8 @@
+2012-09-21	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java:
+	  Return also the gauge and river info-url in a service response.
+
 2012-09-20	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Fix issue886 (do not show waterline if out of range).
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java	Fri Sep 21 09:22:51 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java	Fri Sep 21 09:57:41 2012 +0000
@@ -67,6 +67,7 @@
         ec.addAttr(r, "kmup", Boolean.toString(river.getKmUp()), true);
         ec.addAttr(r, "minq", Double.toString(minmaxq[0]), true);
         ec.addAttr(r, "maxq", Double.toString(minmaxq[1]), true);
+        ec.addAttr(r, "info-url", river.getInfoURL(), true);
 
         Element egs = ec.create("gauges");
 
@@ -83,6 +84,7 @@
             if (name != null) {
                 ec.addAttr(eg, "name", gauge.getName(), true);
             }
+            ec.addAttr(eg, "info-url", gauge.getInfoURL(), true);
 
             String aeo = getGaugeValue(gauge.getAeo());
             if (aeo != null) {

http://dive4elements.wald.intevation.org