comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/timeseries/TimeSeriesOutputTransition.java @ 239:75da91eca29f

Added possibility to print column labels in the first line of an export. Added labels for odv export as well. gnv-artifacts/trunk@307 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 09 Nov 2009 14:11:09 +0000
parents a157c6042cb4
children 8500529d82af
comparison
equal deleted inserted replaced
238:a157c6042cb4 239:75da91eca29f
105 "TIMEVALUE", 105 "TIMEVALUE",
106 //"DATAVALUE", 106 //"DATAVALUE",
107 //"PARAMETER", 107 //"PARAMETER",
108 //"MEASUREMENTID", 108 //"MEASUREMENTID",
109 //"TIMESERIESID" 109 //"TIMESERIESID"
110 }; 110 };
111
112
113 public static final String [] ODV_COLUMN_HEADER = {
114 "Cruise",
115 "Station",
116 "Type",
117 "Date/Time",
118 "Longitude [deegrees_east]",
119 "Latitude [deegrees_north]",
120 "Bot. Depth [m]"
121 };
111 122
112 /** 123 /**
113 * Profile for exporting data to cvs 124 * Profile for exporting data to cvs
114 */ 125 */
115 public static final Profile TIMESERIES_CSV_PROFILE = 126 public static final Profile TIMESERIES_CSV_PROFILE =
116 new DefaultProfile( 127 new DefaultProfile(
128 null,
117 ',', 129 ',',
118 '"', 130 '"',
119 '"', 131 '"',
120 "CSV", 132 "CSV",
121 "ISO-8859-1"); 133 "ISO-8859-1");
124 * Profile for exporting data to odv 136 * Profile for exporting data to odv
125 * TODO Change TIMESERIES_PROFILE_NAMES, which belong to CSV exports 137 * TODO Change TIMESERIES_PROFILE_NAMES, which belong to CSV exports
126 */ 138 */
127 public static final Profile TIMESERIES_ODV_PROFILE = 139 public static final Profile TIMESERIES_ODV_PROFILE =
128 new DefaultProfile( 140 new DefaultProfile(
141 ODV_COLUMN_HEADER,
129 '\t', 142 '\t',
130 CSVWriter.NO_QUOTE_CHARACTER, 143 CSVWriter.NO_QUOTE_CHARACTER,
131 CSVWriter.NO_ESCAPE_CHARACTER, 144 CSVWriter.NO_ESCAPE_CHARACTER,
132 "ODV", 145 "ODV",
133 "ISO-8859-1"); 146 "ISO-8859-1");

http://dive4elements.wald.intevation.org