[Dive4elements-commits] [PATCH 05 of 13] Fix: Handle epochs like official epochs to get a year range

Wald Commits scm-commit at wald.intevation.org
Wed Nov 14 17:26:31 CET 2012


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1352909041 -3600
# Node ID de4832ffde2a76b2a35db52235de3ea3a96bfc6e
# Parent  17d896822d7088ef8f919c1c43aea749488be869
Fix: Handle epochs like official epochs to get a year range.

diff -r 17d896822d70 -r de4832ffde2a flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/SedimentLoadAccess.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/SedimentLoadAccess.java	Wed Nov 14 17:02:51 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/SedimentLoadAccess.java	Wed Nov 14 17:04:01 2012 +0100
@@ -63,7 +63,9 @@
     }
 
     public int[][] getEpochs() {
-        if (getYearEpoch().equals("epoch")) {
+        if (getYearEpoch().equals("epoch") ||
+            getYearEpoch().equals("off_epoch")
+        ) {
             String data = getString("epochs");
 
             if (data == null) {


More information about the Dive4elements-commits mailing list