Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/SedimentLoadLSParser.java @ 8059:bde5f5ec7c72
SCHEMA CHANGE and Importer: get time intervals of SQ-relations from metalines in sediment load files.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 18 Jul 2014 18:01:49 +0200 |
parents | d86cc6a17b7a |
children | 3ae11daff343 |
comparison
equal
deleted
inserted
replaced
8058:fbe3ba5a480e | 8059:bde5f5ec7c72 |
---|---|
81 return; | 81 return; |
82 } | 82 } |
83 if (handleMetaFractionName(line)) { | 83 if (handleMetaFractionName(line)) { |
84 return; | 84 return; |
85 } | 85 } |
86 if (handleMetaSQTimeInterval(line)) { | |
87 return; | |
88 } | |
86 if (handleColumnNames(line)) { | 89 if (handleColumnNames(line)) { |
87 return; | 90 return; |
88 } | 91 } |
89 log.warn("ASLP: Unknown meta line: '" + line + "'"); | 92 log.warn("ASLP: Unknown meta line: '" + line + "'"); |
90 } | 93 } |
145 } | 148 } |
146 | 149 |
147 for (int i = 0, n = columnNames.length; i < n-2; i++) { | 150 for (int i = 0, n = columnNames.length; i < n-2; i++) { |
148 current[i] = new ImportSedimentLoadLS(this.description); | 151 current[i] = new ImportSedimentLoadLS(this.description); |
149 current[i].setTimeInterval(getTimeInterval(columnNames[i+1])); | 152 current[i].setTimeInterval(getTimeInterval(columnNames[i+1])); |
153 current[i].setSQTimeInterval(sqTimeInterval); | |
150 current[i].setUnit(unit); | 154 current[i].setUnit(unit); |
151 current[i].setGrainFraction(grainFraction); | 155 current[i].setGrainFraction(grainFraction); |
152 current[i].setKind(kind); | 156 current[i].setKind(kind); |
153 } | 157 } |
154 } | 158 } |