Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/WaterlevelExporter.java @ 2144:a4bdf7d8527e
Use FastAnnotations for LocationProvider.
flys-artifacts/trunk@3723 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 19 Jan 2012 13:43:58 +0000 |
parents | bda04ae1154f |
children | 65dac9cf6ff5 |
comparison
equal
deleted
inserted
replaced
2143:c5d24e0587ce | 2144:a4bdf7d8527e |
---|---|
436 Double value = FLYSUtils.getValueFromWQ(wqkms); | 436 Double value = FLYSUtils.getValueFromWQ(wqkms); |
437 desc = value != null | 437 desc = value != null |
438 ? Formatter.getWaterlevelW(context).format(value) : null; | 438 ? Formatter.getWaterlevelW(context).format(value) : null; |
439 } | 439 } |
440 | 440 |
441 long startTime = System.currentTimeMillis(); | |
442 | |
441 for (int i = 0; i < size; i ++) { | 443 for (int i = 0; i < size; i ++) { |
442 result = wqkms.get(i, result); | 444 result = wqkms.get(i, result); |
443 | 445 |
444 if (atGauge) { | 446 if (atGauge) { |
445 writer.writeNext(new String[] { | 447 writer.writeNext(new String[] { |
459 wf.format(result[0]), | 461 wf.format(result[0]), |
460 qf.format(result[1]), | 462 qf.format(result[1]), |
461 FLYSUtils.getLocationDescription(flys, result[2]) | 463 FLYSUtils.getLocationDescription(flys, result[2]) |
462 }); | 464 }); |
463 } | 465 } |
466 } | |
467 | |
468 long stopTime = System.currentTimeMillis(); | |
469 | |
470 if (logger.isDebugEnabled()) { | |
471 logger.debug("Writing CSV took " + | |
472 (float)(stopTime-startTime)/1000f + " secs."); | |
464 } | 473 } |
465 } | 474 } |
466 | 475 |
467 | 476 |
468 /** | 477 /** |