Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java @ 2765:79f6d0802b06
Prepare improved Discharge curve compatibility.
flys-artifacts/trunk@4504 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 24 May 2012 13:39:59 +0000 |
parents | 2f7fed1eb4bf |
children | 5642a83420f2 |
comparison
equal
deleted
inserted
replaced
2764:f8a1a8af338e | 2765:79f6d0802b06 |
---|---|
316 */ | 316 */ |
317 public CalculationResult getWaterlevelData() | 317 public CalculationResult getWaterlevelData() |
318 { | 318 { |
319 logger.debug("WINFOArtifact.getWaterlevelData"); | 319 logger.debug("WINFOArtifact.getWaterlevelData"); |
320 | 320 |
321 if (getDataAsString("calculation_mode").equals("calc.discharge.longitudinal.section")) { | |
322 return getDischargeLongitudinalSectionData(); | |
323 } | |
324 | |
321 River river = FLYSUtils.getRiver(this); | 325 River river = FLYSUtils.getRiver(this); |
322 if (river == null) { | 326 if (river == null) { |
323 return error(new WQKms[0], "no.river.selected"); | 327 return error(new WQKms[0], "no.river.selected"); |
324 } | 328 } |
325 | 329 |