changeset 3879:ac49675f9335

Add the gauge station to the GaugeOverviewInfoService xml response flys-artifacts/trunk@5516 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Wed, 19 Sep 2012 08:45:51 +0000
parents 2e9c6855a1e8
children e7f99e30997c
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Sep 18 21:38:19 2012 +0000
+++ b/flys-artifacts/ChangeLog	Wed Sep 19 08:45:51 2012 +0000
@@ -1,3 +1,8 @@
+2012-09-13	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java:
+	  Return also the station in a service response.
+
 2012-09-18	Christian Lins	<christian.lins@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/states/fixation/FunctionSelect.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java	Tue Sep 18 21:38:19 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java	Wed Sep 19 08:45:51 2012 +0000
@@ -127,6 +127,11 @@
                 ec.addAttr(eg, "maxq", maxq, true);
             }
 
+            String station = getGaugeValue(gauge.getStation());
+            if (station != null) {
+                ec.addAttr(eg, "station", station, true);
+            }
+
             egs.appendChild(eg);
         }
 

http://dive4elements.wald.intevation.org