[PATCH 1 of 2] Added som more meta data to middle bed height result

Wald Commits scm-commit at wald.intevation.org
Wed Jul 2 14:43:50 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1404304927 -7200
# Branch facet-metadata
# Node ID 150d71261cade764f9a681bcc9f1e1f4045cd805
# Parent  03fc4cdb793cf3cd893f7b95d307e2282e226f83
Added som more meta data to middle bed height result.

diff -r 03fc4cdb793c -r 150d71261cad artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/MiddleBedHeightCalculation.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/MiddleBedHeightCalculation.java	Wed Jul 02 12:34:52 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/MiddleBedHeightCalculation.java	Wed Jul 02 14:42:07 2014 +0200
@@ -115,7 +115,10 @@
             single.getEvaluationBy(),
             single.getDescription(),
             single.getCurElevationModel().getName(),
-            single.getOldElevationModel().getName());
+            single.getOldElevationModel().getName(),
+            single.getType().getName(),
+            single.getLocationSystem().getName(),
+            single.getSoundingWidth());
 
         for (BedHeightSingleValue value: values) {
             if (value.getHeight() != null) {
diff -r 03fc4cdb793c -r 150d71261cad artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/MiddleBedHeightData.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/MiddleBedHeightData.java	Wed Jul 02 12:34:52 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/MiddleBedHeightData.java	Wed Jul 02 14:42:07 2014 +0200
@@ -41,19 +41,26 @@
     private TDoubleArrayList soundingWidth;
     private TDoubleArrayList dataGap;
     private TDoubleArrayList width;
+    private String type;
+    private String locationSystem;
+    private Integer soundWidth;
     private String oldElevationModel;
     private String curElevationModel;
     private ArrayList empty;
 
 
     protected MiddleBedHeightData(int start, int end, String eval, String desc,
-        String curElevationModel, String oldElevationModel) {
+        String curElevationModel, String oldElevationModel, String type,
+        String locationSystem, Integer soundingWidth) {
         this.startYear   = start;
         this.endYear     = end;
         this.evaluatedBy = eval;
         this.description = desc;
         this.curElevationModel = curElevationModel;
         this.oldElevationModel = oldElevationModel;
+        this.type = type;
+        this.locationSystem = locationSystem;
+        this.soundWidth = soundingWidth;
 
         this.km            = new TDoubleArrayList();
         this.middleHeight  = new TDoubleArrayList();
@@ -100,6 +107,17 @@
         return this.oldElevationModel;
     }
 
+    public String getType() {
+        return this.type;
+    }
+
+    public String getLocationSystem() {
+        return this.locationSystem;
+    }
+
+    public String getSoundingWidth() {
+        return this.soundWidth.toString();
+    }
     protected void addKM(double km) {
         this.km.add(km);
     }


More information about the Dive4Elements-commits mailing list