diff flys-client/src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java @ 3826:7a34af684ed4

Add station info to the gauges flys-client/trunk@5521 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Wed, 19 Sep 2012 12:41:48 +0000
parents 79ad33f41977
children dc505433173f
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java	Wed Sep 19 07:59:35 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java	Wed Sep 19 12:41:48 2012 +0000
@@ -123,12 +123,15 @@
                             ArtifactNamespaceContext.NAMESPACE_URI, "maxq");
                     String gmaxw = gaugeele.getAttributeNS(
                             ArtifactNamespaceContext.NAMESPACE_URI, "maxw");
+                    String gstation = gaugeele.getAttributeNS(
+                            ArtifactNamespaceContext.NAMESPACE_URI, "station");
 
                     logger.debug("Found gauge with name " + gname);
 
                     GaugeInfo gaugeinfo = new DefaultGaugeInfo(
                             gname,
                             kmup,
+                            parseDouble(gstation),
                             parseDouble(gstart),
                             parseDouble(gend),
                             parseDouble(gdatum),

http://dive4elements.wald.intevation.org