diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java @ 5665:3b12c890b0b2

Fix RangeAccess.getLocations for Reference Curves.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 11 Apr 2013 17:24:19 +0200
parents 14db045d6368
children
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