comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeCurveGenerator.java @ 1680:f4da2009eb8b

fixed flys/issue177 flys-artifacts/trunk@2897 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 05 Oct 2011 15:04:00 +0000
parents e0243627ba62
children bdb05dc9b763
comparison
equal deleted inserted replaced
1679:69929c471646 1680:f4da2009eb8b
147 addFirstAxisSeries(series); 147 addFirstAxisSeries(series);
148 } 148 }
149 149
150 150
151 protected String getSeriesName(Gauge gauge) { 151 protected String getSeriesName(Gauge gauge) {
152 // XXX The following code stops the artifact server accepting new HTTP 152 //XXX The following code stops the artifact server accepting new HTTP
153 // requests. It needs more analysis! Is loading the discharge table a 153 //requests. It needs more analysis! Is loading the discharge table a
154 // memory problem? Or is the time interval the problem? 154 //memory problem? Or is the time interval the problem?
155 155
156 //List<DischargeTable> dts = gauge.getDischargeTables(); 156 List<DischargeTable> dts = gauge.getDischargeTables();
157 157
158 //for (DischargeTable dt: dts) { 158 for (DischargeTable dt: dts) {
159 // if (dt.getKind() == 0) { 159 if (dt.getKind() == 0) {
160 // TimeInterval ti = dt.getTimeInterval(); 160 TimeInterval ti = dt.getTimeInterval();
161 161
162 // Date start = ti.getStartTime(); 162 Date start = ti.getStartTime();
163 // Date end = ti.getStopTime(); 163 Date end = ti.getStopTime();
164 164
165 // String name = gauge.getName(); 165 String name = gauge.getName();
166 166
167 // if (end == null) { 167 if (end == null) {
168 // Object[] args = new Object[] { name, start }; 168 Object[] args = new Object[] { name, start };
169 // return msg( 169 return msg(
170 // "chart.discharge.curve.curve.valid.from", 170 "chart.discharge.curve.curve.valid.from",
171 // "", 171 "",
172 // args); 172 args);
173 // } 173 }
174 // else { 174 else {
175 // Object[] args = new Object[] { name, start, end }; 175 Object[] args = new Object[] { name, start, end };
176 // return msg( 176 return msg(
177 // "chart.discharge.curve.curve.valid.range", 177 "chart.discharge.curve.curve.valid.range",
178 // "", 178 "",
179 // args); 179 args);
180 // } 180 }
181 // } 181 }
182 //} 182 }
183 183
184 return gauge.getName(); 184 return gauge.getName();
185 } 185 }
186 } 186 }
187 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 187 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org