Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalProfileChart.java @ 643:24a85678bd39
Added some more debug information while gap detection.
gnv-artifacts/trunk@729 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 04 Mar 2010 08:03:56 +0000 |
parents | d2c68f2f619b |
children | b98d1adee7a6 |
comparison
equal
deleted
inserted
replaced
642:83f8f98a4f11 | 643:24a85678bd39 |
---|---|
328 return (smallDelta > (3.0 / (count - 1) * delta)); | 328 return (smallDelta > (3.0 / (count - 1) * delta)); |
329 } | 329 } |
330 | 330 |
331 | 331 |
332 protected boolean gridDetection(double last, double current) { | 332 protected boolean gridDetection(double last, double current) { |
333 if (log.isDebugEnabled()) { | |
334 log.debug("######################################################"); | |
335 log.debug("Parameters for gap detection"); | |
336 log.debug("Defined gap size for grids: " + GAP_MAX_LEVEL); | |
337 log.debug("1st value to compare: " + last); | |
338 log.debug("2nd value to compare: " + current); | |
339 log.debug("Difference: " + Math.abs(current - last)); | |
340 } | |
333 return (Math.abs(current - last) > GAP_MAX_LEVEL); | 341 return (Math.abs(current - last) > GAP_MAX_LEVEL); |
334 } | 342 } |
335 | 343 |
336 | 344 |
337 protected String getDependendAxisName(Result first, Result second) { | 345 protected String getDependendAxisName(Result first, Result second) { |