diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSingleData.java @ 8554:3a0522f1a532

Morphological width imported and stored with heights is redundant to table morphologic_width.
author "Tom Gottfried <tom@intevation.de>"
date Mon, 16 Feb 2015 09:00:08 +0100
parents 856701739443
children
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSingleData.java	Mon Feb 16 08:39:06 2015 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSingleData.java	Mon Feb 16 09:00:08 2015 +0100
@@ -17,20 +17,17 @@
     protected Integer year;
     protected TDoubleArrayList data_gap;
     protected TDoubleArrayList soundingWidth;
-    protected TDoubleArrayList width;
 
     public BedHeightSingleData() {
         super();
         data_gap = new TDoubleArrayList();
         soundingWidth = new TDoubleArrayList();
-        width = new TDoubleArrayList();
     }
 
     public BedHeightSingleData(String name) {
         super(name);
         data_gap = new TDoubleArrayList();
         soundingWidth = new TDoubleArrayList();
-        width = new TDoubleArrayList();
     }
 
     public void add(
@@ -38,7 +35,6 @@
         double station,
         double gap,
         double sounding,
-        double width,
         Integer year
     ) {
         super.add(value, station);
@@ -47,7 +43,6 @@
         }
         this.data_gap.add(gap);
         this.soundingWidth.add(sounding);
-        this.width.add(width);
     }
 
     public Integer getYear() {
@@ -76,15 +71,4 @@
         return this.soundingWidth.toNativeArray();
     }
 
-    public double getWidth(int ndx) {
-        return width.getQuick(ndx);
-    }
-
-    public double getWidth(double station) {
-        int ndx = this.station.indexOf(station);
-        if (ndx < 0) {
-            return Double.NaN;
-        }
-        return width.get(ndx);
-    }
 }

http://dive4elements.wald.intevation.org