diff artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedHeightAccess.java @ 7919:868f55932fe6

Removed serverside path for bed height epochs.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 06 Jun 2014 16:59:16 +0200
parents 793dfb2f4b7b
children e4606eae8ea5
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedHeightAccess.java	Fri Jun 06 16:47:48 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedHeightAccess.java	Fri Jun 06 16:59:16 2014 +0200
@@ -95,46 +95,6 @@
         return type;
     }
 
-    public String getYearEpoch() {
-        if (yearEpoch == null) {
-            yearEpoch =  getString("ye_select");
-        }
-        return yearEpoch;
-    }
-
-
-    public int[] getBedHeightEpochIDs() {
-        if (epochIDs == null) {
-            String data = getString("soundings");
-
-            if (data == null) {
-                logger.warn("No 'soundings' parameter specified!");
-                return null;
-            }
-
-            String[] parts = data.split(";");
-
-            TIntArrayList ids = new TIntArrayList();
-
-            for (String part: parts) {
-                if (part.indexOf(SoundingsSelect.PREFIX_EPOCH) >= 0) {
-                    String tmp = part.replace(SoundingsSelect.PREFIX_EPOCH, "");
-
-                    try {
-                        ids.add(Integer.parseInt(tmp));
-                    }
-                    catch (NumberFormatException nfe) {
-                        logger.warn("Cannot parse int from string: '" + tmp + "'");
-                    }
-                }
-            }
-
-            epochIDs = ids.toNativeArray();
-        }
-
-        return epochIDs;
-    }
-
     public Integer getHeightId() {
         if (heightId == null) {
             heightId = getInteger("height_id");

http://dive4elements.wald.intevation.org