[Dive4elements-commits] [PATCH 5 of 5] Fix RangeAccess.getLocations for Reference Curves

Wald Commits scm-commit at wald.intevation.org
Thu Apr 11 20:47:46 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1365693859 -7200
# Node ID 3b12c890b0b2a6eeb39c7ade7a0ba7b51bb9d484
# Parent  fb9892036bd64de16bc3633f99b68a49d97c015d
Fix RangeAccess.getLocations for Reference Curves.

diff -r fb9892036bd6 -r 3b12c890b0b2 flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java
--- 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;
         }


More information about the Dive4elements-commits mailing list