view gnv-artifacts/src/main/java/de/intevation/gnv/statistics/HorizontalProfileStatistics.java @ 176:bff7bbb7c6f0

Add Spatial-Query-Syntax to HorizontalProfile-Queries and use Geometry to Calculate the X-Ordinate of the Chart. gnv-artifacts/trunk@219 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 14 Oct 2009 10:49:35 +0000
parents 7fb9441dd8af
children 3e82b4f1c455
line wrap: on
line source
/**
 *
 */
package de.intevation.gnv.statistics;

import java.sql.SQLException;

import de.intevation.gnv.geobackend.base.Result;

/**
 * @author Tim Englich <tim.englich@intevation.de>
 * 
 */
public class HorizontalProfileStatistics extends TimeseriesStatistics {

    /**
     * Constructor
     */
    public HorizontalProfileStatistics() {
        super();
    }

    @Override
    protected double calculateXOrdinateValue(Result row) throws SQLException {
        return row.getDouble("XORDINATE_XCOORD");
    }
}

http://dive4elements.wald.intevation.org