Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/CalculationSelectUinfo.java @ 9619:63bbd5e45839
#21 WMS Legend
author | dnt_bjoernsen <d.tironi@bjoernsen.de> |
---|---|
date | Thu, 10 Oct 2019 16:08:47 +0200 |
parents | 787fc085459b |
children |
comparison
equal
deleted
inserted
replaced
9618:af671ee7835e | 9619:63bbd5e45839 |
---|---|
59 final String calcmode = uinfo.getCalculationMode().toString(); // "toString()" is important | 59 final String calcmode = uinfo.getCalculationMode().toString(); // "toString()" is important |
60 if (calcmode.equals("uinfo_inundation_duration")) { | 60 if (calcmode.equals("uinfo_inundation_duration")) { |
61 | 61 |
62 final String river = uinfo.getRiver(); | 62 final String river = uinfo.getRiver(); |
63 if (!UedauernConfiguration.filesExistsForRiver(river)) | 63 if (!UedauernConfiguration.filesExistsForRiver(river)) |
64 throw new IllegalArgumentException("error_no_data_for_river"); | 64 throw new IllegalArgumentException("error_no_data_for_river"); // wrong config could be thrown here as well... |
65 } | 65 } |
66 return true; | 66 return true; |
67 } | 67 } |
68 } | 68 } |