# HG changeset patch # User Felix Wolfsteller # Date 1358786096 -3600 # Node ID 15e55fdbb4028017c87491f051734effbb3a6cdc # Parent a3dc382bc1caa1a271bfa0372dba997e18a58b46 RangeAccess: Doc and debug. diff -r a3dc382bc1ca -r 15e55fdbb402 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 Mon Jan 21 17:26:08 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java Mon Jan 21 17:34:56 2013 +0100 @@ -28,21 +28,30 @@ } - /** Return ld_from data. */ + /** Return ld_from data (in km). */ public double getFrom() { if (from == null) { from = getDouble("ld_from"); } + if (logger.isDebugEnabled()) { + logger.debug("from: '" + from + "'"); + } + return from.doubleValue(); } - /** Return ld_to data. */ + /** Return ld_to data (in km). */ public double getTo() { if (to == null) { to = getDouble("ld_to"); } + + if (logger.isDebugEnabled()) { + logger.debug("to: '" + to + "'"); + } + return to.doubleValue(); }