Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/MainValuesWFacet.java @ 6687:641f93a5fa9e
Do not translate river annotations twice. (issue1370)
This fixes mainvaluesW at gauge becuase they are already translated
when fetched from the artifact.
I hope this is not necessary for other annotations. I could not
see any.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 29 Jul 2013 10:14:32 +0200 |
parents | 4930ea445bdd |
children | 5d071e1cb17c |
comparison
equal
deleted
inserted
replaced
6686:661b45d13b17 | 6687:641f93a5fa9e |
---|---|
108 // If so, we are likely fetching data for a navigable | 108 // If so, we are likely fetching data for a navigable |
109 // diagram (i.e. in fixation branch). | 109 // diagram (i.e. in fixation branch). |
110 if (context.getContextValue(FixChartGenerator.CURRENT_KM) != null) { | 110 if (context.getContextValue(FixChartGenerator.CURRENT_KM) != null) { |
111 Double ckm = (Double) context.getContextValue(FixChartGenerator.CURRENT_KM); | 111 Double ckm = (Double) context.getContextValue(FixChartGenerator.CURRENT_KM); |
112 // Return linearly interpolated values, in m if not at gauge, | 112 // Return linearly interpolated values, in m if not at gauge, |
113 // in cm if at gauge. | 113 // in cm over datum if at gauge. |
114 ws = mvArtifact.getMainValuesW(new double[] {ckm}); | 114 ws = mvArtifact.getMainValuesW(new double[] {ckm}); |
115 } | 115 } |
116 } | 116 } |
117 else { | 117 else { |
118 wqdays = (WQDay) providers.get(0).provideData( | 118 wqdays = (WQDay) providers.get(0).provideData( |