Mercurial > dive4elements > gnv-client
annotate gnv-artifacts/src/main/java/de/intevation/gnv/statistics/VerticalProfileVectorStatistics.java @ 1106:8ce8979f51df
Added the transition chain for the external mapviewer call (issue318).
gnv-artifacts/trunk@1237 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 29 Jun 2010 07:09:13 +0000 |
parents | 1657ee3ac054 |
children | f953c9a559d8 |
rev | line source |
---|---|
1079
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.gnv.statistics; |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
2 |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
3 import de.intevation.gnv.geobackend.base.Result; |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
4 import de.intevation.gnv.geobackend.base.ResultDescriptor; |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
5 |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
6 import java.sql.SQLException; |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
7 |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
8 |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
9 /** |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
11 */ |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
12 public class VerticalProfileVectorStatistics |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 extends VectorStatistics |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
14 { |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
15 public VerticalProfileVectorStatistics() { |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
16 } |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
17 |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
18 |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
19 protected void clear() { |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
20 // nothing to clear |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
21 } |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
22 |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
23 |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
24 protected int getValueIdx(ResultDescriptor rd) { |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
25 return rd.getColumnIndex("YORDINATE"); |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
26 } |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
27 |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
28 |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
29 protected double calculateXOrdinateValue(Result prev, Result row) |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
30 throws SQLException |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
31 { |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
32 return row.getDouble("XORDINATE"); |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
33 } |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
34 } |
1657ee3ac054
Added statistics for vectorial verticalprofiles.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
35 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |