comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/VerticalProfileVectorStatistics.java @ 1079:1657ee3ac054

Added statistics for vectorial verticalprofiles. gnv-artifacts/trunk@1181 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 09 Jun 2010 07:38:40 +0000
parents
children f953c9a559d8
comparison
equal deleted inserted replaced
1078:5659b5c5e4b5 1079:1657ee3ac054
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 VerticalProfileVectorStatistics
13 extends VectorStatistics
14 {
15 public VerticalProfileVectorStatistics() {
16 }
17
18
19 protected void clear() {
20 // nothing to clear
21 }
22
23
24 protected int getValueIdx(ResultDescriptor rd) {
25 return rd.getColumnIndex("YORDINATE");
26 }
27
28
29 protected double calculateXOrdinateValue(Result prev, Result row)
30 throws SQLException
31 {
32 return row.getDouble("XORDINATE");
33 }
34 }
35 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org