Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/timeseries/TimeSeriesOutputTransition.java @ 238:a157c6042cb4
ODV-export for timeseries completed.
gnv-artifacts/trunk@306 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 09 Nov 2009 13:48:50 +0000 |
parents | 2ceb4bf51cba |
children | 75da91eca29f |
comparison
equal
deleted
inserted
replaced
237:56dcedc4a96c | 238:a157c6042cb4 |
---|---|
52 import de.intevation.gnv.transition.describedata.KeyValueDescibeData; | 52 import de.intevation.gnv.transition.describedata.KeyValueDescibeData; |
53 import de.intevation.gnv.transition.describedata.NamedCollection; | 53 import de.intevation.gnv.transition.describedata.NamedCollection; |
54 import de.intevation.gnv.transition.exception.TransitionException; | 54 import de.intevation.gnv.transition.exception.TransitionException; |
55 import de.intevation.gnv.exports.DefaultExport; | 55 import de.intevation.gnv.exports.DefaultExport; |
56 import de.intevation.gnv.exports.DefaultDataCollector; | 56 import de.intevation.gnv.exports.DefaultDataCollector; |
57 import de.intevation.gnv.exports.SimpleOdvDataCollector; | |
57 import de.intevation.gnv.exports.DefaultProfile; | 58 import de.intevation.gnv.exports.DefaultProfile; |
58 import de.intevation.gnv.exports.Export.Profile; | 59 import de.intevation.gnv.exports.Export.Profile; |
59 import de.intevation.gnv.utils.ArtifactXMLUtilities; | 60 import de.intevation.gnv.utils.ArtifactXMLUtilities; |
60 | 61 |
61 | 62 |
96 | 97 |
97 public static final String [] TIMESERIES_ODV_PROFILE_NAMES = { | 98 public static final String [] TIMESERIES_ODV_PROFILE_NAMES = { |
98 "CRUISE", | 99 "CRUISE", |
99 "STATION", | 100 "STATION", |
100 "TYPE", | 101 "TYPE", |
102 "SHAPE", | |
101 "BOTDEPTH", | 103 "BOTDEPTH", |
102 "DEPTH", | 104 //"DEPTH", |
103 "TIMEVALUE", | 105 "TIMEVALUE", |
104 "DATAVALUE", | 106 //"DATAVALUE", |
105 "PARAMETER", | 107 //"PARAMETER", |
106 "MEASUREMENTID", | 108 //"MEASUREMENTID", |
107 "TIMESERIESID" | 109 //"TIMESERIESID" |
108 }; | 110 }; |
109 | 111 |
110 /** | 112 /** |
111 * Profile for exporting data to cvs | 113 * Profile for exporting data to cvs |
112 */ | 114 */ |
231 * TODO Result is not used at the moment. Change result with correct data. | 233 * TODO Result is not used at the moment. Change result with correct data. |
232 */ | 234 */ |
233 protected void createODV(OutputStream outputStream, Collection result) | 235 protected void createODV(OutputStream outputStream, Collection result) |
234 throws IOException, TransitionException { | 236 throws IOException, TransitionException { |
235 | 237 |
236 DefaultExport export = new DefaultExport(new DefaultDataCollector( | 238 DefaultExport export = new DefaultExport(new SimpleOdvDataCollector( |
237 TIMESERIES_CSV_PROFILE_NAMES)); | 239 TIMESERIES_ODV_PROFILE_NAMES)); |
238 | 240 |
241 if (result == null) | |
242 log.error("#################### RESULT == NULL #################"); | |
239 export.create(TIMESERIES_ODV_PROFILE, outputStream, result); | 243 export.create(TIMESERIES_ODV_PROFILE, outputStream, result); |
240 } | 244 } |
241 | 245 |
242 /** | 246 /** |
243 * @return | 247 * @return |