ingo@1115: /* ingo@1115: * Copyright (c) 2010 by Intevation GmbH ingo@1115: * ingo@1115: * This program is free software under the LGPL (>=v2.1) ingo@1115: * Read the file LGPL.txt coming with the software for details ingo@1115: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1115: */ ingo@1115: ingo@1079: package de.intevation.gnv.statistics; ingo@1079: ingo@1079: import de.intevation.gnv.geobackend.base.Result; ingo@1079: import de.intevation.gnv.geobackend.base.ResultDescriptor; ingo@1079: ingo@1079: import java.sql.SQLException; ingo@1079: ingo@1079: ingo@1079: /** ingo@1079: * @author Ingo Weinzierl ingo@1079: */ ingo@1079: public class VerticalProfileVectorStatistics ingo@1079: extends VectorStatistics ingo@1079: { ingo@1079: public VerticalProfileVectorStatistics() { ingo@1079: } ingo@1079: ingo@1079: ingo@1079: protected void clear() { ingo@1079: // nothing to clear ingo@1079: } ingo@1079: ingo@1079: ingo@1079: protected int getValueIdx(ResultDescriptor rd) { ingo@1079: return rd.getColumnIndex("YORDINATE"); ingo@1079: } ingo@1079: ingo@1079: ingo@1079: protected double calculateXOrdinateValue(Result prev, Result row) ingo@1079: throws SQLException ingo@1079: { ingo@1079: return row.getDouble("XORDINATE"); ingo@1079: } ingo@1079: } ingo@1079: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :