Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/VerticalProfileVectorStatistics.java @ 1119:7c4f81f74c47
merged gnv-artifacts
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:00 +0200 |
parents | f953c9a559d8 |
children |
comparison
equal
deleted
inserted
replaced
1027:fca4b5eb8d2f | 1119:7c4f81f74c47 |
---|---|
1 /* | |
2 * Copyright (c) 2010 by Intevation GmbH | |
3 * | |
4 * This program is free software under the LGPL (>=v2.1) | |
5 * Read the file LGPL.txt coming with the software for details | |
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | |
7 */ | |
8 | |
9 package de.intevation.gnv.statistics; | |
10 | |
11 import de.intevation.gnv.geobackend.base.Result; | |
12 import de.intevation.gnv.geobackend.base.ResultDescriptor; | |
13 | |
14 import java.sql.SQLException; | |
15 | |
16 | |
17 /** | |
18 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
19 */ | |
20 public class VerticalProfileVectorStatistics | |
21 extends VectorStatistics | |
22 { | |
23 public VerticalProfileVectorStatistics() { | |
24 } | |
25 | |
26 | |
27 protected void clear() { | |
28 // nothing to clear | |
29 } | |
30 | |
31 | |
32 protected int getValueIdx(ResultDescriptor rd) { | |
33 return rd.getColumnIndex("YORDINATE"); | |
34 } | |
35 | |
36 | |
37 protected double calculateXOrdinateValue(Result prev, Result row) | |
38 throws SQLException | |
39 { | |
40 return row.getDouble("XORDINATE"); | |
41 } | |
42 } | |
43 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |