Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/vertical/VerticalProfileVectorOutputState.java @ 1083:14370090a018
Enabled histogram creation for vectorial verticalprofiles.
gnv-artifacts/trunk@1185 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 09 Jun 2010 10:07:07 +0000 |
parents | 1657ee3ac054 |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
1082:3c0fd3c2fd6b | 1083:14370090a018 |
---|---|
18 | 18 |
19 import de.intevation.gnv.geobackend.base.Result; | 19 import de.intevation.gnv.geobackend.base.Result; |
20 | 20 |
21 import de.intevation.gnv.utils.VectorDataProcessor; | 21 import de.intevation.gnv.utils.VectorDataProcessor; |
22 | 22 |
23 import de.intevation.gnv.state.describedata.KeyValueDescibeData; | |
23 import de.intevation.gnv.state.exception.StateException; | 24 import de.intevation.gnv.state.exception.StateException; |
24 | 25 |
25 import de.intevation.gnv.statistics.Statistics; | 26 import de.intevation.gnv.statistics.Statistics; |
26 import de.intevation.gnv.statistics.VerticalProfileVectorStatistics; | 27 import de.intevation.gnv.statistics.VerticalProfileVectorStatistics; |
27 | 28 |
28 import java.io.IOException; | 29 import java.io.IOException; |
29 import java.io.OutputStream; | 30 import java.io.OutputStream; |
30 | 31 |
31 import java.util.Collection; | 32 import java.util.Collection; |
32 import java.util.Locale; | 33 import java.util.Locale; |
34 import java.util.Map; | |
33 | 35 |
34 import net.sf.ehcache.Cache; | 36 import net.sf.ehcache.Cache; |
35 | 37 |
36 import org.apache.log4j.Logger; | 38 import org.apache.log4j.Logger; |
37 | 39 |
165 return chart; | 167 return chart; |
166 } | 168 } |
167 | 169 |
168 | 170 |
169 @Override | 171 @Override |
172 protected Chart[] getHistograms( | |
173 String uuid, | |
174 CallContext callContext, | |
175 Collection<KeyValueDescibeData> parameters, | |
176 Collection<KeyValueDescibeData> measurements, | |
177 Collection<KeyValueDescibeData> dates, | |
178 Map requestParameter | |
179 ) { | |
180 Collection results = (Collection) getChartResult(uuid, callContext); | |
181 ChartTheme theme = createStyle(callContext); | |
182 | |
183 return VectorDataProcessor.getHistograms( | |
184 uuid, callContext, results, theme, requestParameter); | |
185 } | |
186 | |
187 | |
188 @Override | |
170 protected void createODV( | 189 protected void createODV( |
171 OutputStream outputStream, Collection result, String uuid) | 190 OutputStream outputStream, Collection result, String uuid) |
172 throws IOException, StateException | 191 throws IOException, StateException |
173 { | 192 { |
174 logger.info("Start exporting " + result.size() + " items to odv."); | 193 logger.info("Start exporting " + result.size() + " items to odv."); |