Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSingleData.java @ 7899:8333b9b06c98 3.1.3
Return NaN for width if no width exists for the requested station in bedheights data.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 21 May 2014 17:03:02 +0200 |
parents | 1aba75321441 |
children | 856701739443 |
comparison
equal
deleted
inserted
replaced
7898:447ff9126d1e | 7899:8333b9b06c98 |
---|---|
80 return width.getQuick(ndx); | 80 return width.getQuick(ndx); |
81 } | 81 } |
82 | 82 |
83 public double getWidth(double station) { | 83 public double getWidth(double station) { |
84 int ndx = this.station.indexOf(station); | 84 int ndx = this.station.indexOf(station); |
85 if (ndx < 0) { | |
86 return Double.NaN; | |
87 } | |
85 return width.get(ndx); | 88 return width.get(ndx); |
86 } | 89 } |
87 } | 90 } |