comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MeasurementStationInfoService.java @ 5497:5d99cd6e146a

Use gauge name instead of gauge to fill 'messstelleninfo'.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 28 Mar 2013 13:19:13 +0100
parents 3937c6a85db4
children 57f802db5c5a
comparison
equal deleted inserted replaced
5496:23d8f2700b38 5497:5d99cd6e146a
104 ec.addAttr(eg, "stoptime", DATE_FORMAT.format(tstop), 104 ec.addAttr(eg, "stoptime", DATE_FORMAT.format(tstop),
105 true); 105 true);
106 } 106 }
107 } 107 }
108 108
109 Gauge gauge = mstation.getGauge(); 109 String gaugename= mstation.getGaugeName();
110 String gaugename = gauge.getName();
111 110
112 if (gaugename != null) { 111 if (gaugename != null) {
113 Element egauge = ec.create("gauge"); 112 Element egauge = ec.create("gauge");
114 ec.addAttr(egauge, "name", gaugename, true); 113 ec.addAttr(egauge, "name", gaugename, true);
115 eg.appendChild(egauge); 114 eg.appendChild(egauge);

http://dive4elements.wald.intevation.org