diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java @ 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 b3fdb5a12613
children cfed96c53e9a
line wrap: on
line diff
--- 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