comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesVectorStatistics.java @ 1077:1728aac87717

Added statistics for vectorial timeseries. gnv-artifacts/trunk@1179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 09 Jun 2010 07:04:03 +0000
parents
children 5659b5c5e4b5
comparison
equal deleted inserted replaced
1076:dc9727a67d41 1077:1728aac87717
1 package de.intevation.gnv.statistics;
2
3 import de.intevation.gnv.geobackend.base.Result;
4 import de.intevation.gnv.geobackend.base.ResultDescriptor;
5
6 import java.sql.SQLException;
7
8
9 /**
10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
11 */
12 public class TimeseriesVectorStatistics
13 extends VectorStatistics
14 {
15 public TimeseriesVectorStatistics() {
16 }
17
18
19 protected int getValueIdx(ResultDescriptor rd) {
20 return rd.getColumnIndex("YORDINATE");
21 }
22
23
24 protected double calculateXOrdinateValue(Result prev, Result row)
25 throws SQLException
26 {
27 return new Double((row.getDate("XORDINATE")).getTime() / 1000 / 3600);
28 }
29 }
30 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org