changeset 5665:3b12c890b0b2

Fix RangeAccess.getLocations for Reference Curves.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 11 Apr 2013 17:24:19 +0200 (2013-04-11)
parents fb9892036bd6
children a4118a699a5a
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java	Thu Apr 11 16:31:55 2013 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java	Thu Apr 11 17:24:19 2013 +0200
@@ -78,6 +78,13 @@
                             winfo.getReferenceEndKms()[0]
                         };
                 }
+                else if (winfo.getReferenceStartKm() != null) {
+                    return new double[]
+                        {
+                            winfo.getReferenceStartKm().doubleValue(),
+                            winfo.getReferenceStartKm().doubleValue()
+                        };
+                }
             }
             return null;
         }

http://dive4elements.wald.intevation.org