Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/GaugeDischargeCurveFacet.java @ 5865:73da40528cf2
River artifacts: Renamed FLYSUtils to RiverUtils.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:09:31 +0200 |
parents | 4897a58c8746 |
children | 59ff03ff48f1 |
comparison
equal
deleted
inserted
replaced
5864:f2e46a668fe6 | 5865:73da40528cf2 |
---|---|
19 | 19 |
20 import org.dive4elements.river.artifacts.FLYSArtifact; | 20 import org.dive4elements.river.artifacts.FLYSArtifact; |
21 | 21 |
22 import org.dive4elements.river.model.Gauge; | 22 import org.dive4elements.river.model.Gauge; |
23 | 23 |
24 import org.dive4elements.river.utils.FLYSUtils; | 24 import org.dive4elements.river.utils.RiverUtils; |
25 | 25 |
26 import org.apache.log4j.Logger; | 26 import org.apache.log4j.Logger; |
27 | 27 |
28 /** | 28 /** |
29 * A Facet that returns discharge curve data at a gauge | 29 * A Facet that returns discharge curve data at a gauge |
54 | 54 |
55 FLYSArtifact flys = (FLYSArtifact)art; | 55 FLYSArtifact flys = (FLYSArtifact)art; |
56 | 56 |
57 String river = flys.getDataAsString("river"); | 57 String river = flys.getDataAsString("river"); |
58 | 58 |
59 Gauge gauge = FLYSUtils.getReferenceGauge(flys); | 59 Gauge gauge = RiverUtils.getReferenceGauge(flys); |
60 | 60 |
61 if (river == null || gauge == null) { | 61 if (river == null || gauge == null) { |
62 log.warn("Unknown river or gauge"); | 62 log.warn("Unknown river or gauge"); |
63 return null; | 63 return null; |
64 } | 64 } |