Mercurial > dive4elements > river
diff flys-backend/src/main/java/de/intevation/flys/importer/PegelGltParser.java @ 185:a60edcfe5f53
Added new helper models for import.
flys-backend/trunk@1503 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 17 Mar 2011 16:12:39 +0000 |
parents | 4ab2c3bd474c |
children | cf8cbcb6a10d |
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/PegelGltParser.java Thu Mar 17 15:21:50 2011 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/PegelGltParser.java Thu Mar 17 16:12:39 2011 +0000 @@ -74,6 +74,7 @@ double from = Double.parseDouble(parts[0].replace(",", ".")); double to = Double.parseDouble(parts[1].replace(",", ".")); if (to < from) { double t = from; from = to; to = t; } + ImportRange range = new ImportRange(from, to); File staFile = FileTools.repair(new File(parent, parts[2])); File atFile = FileTools.repair(new File(parent, parts[3])); @@ -84,7 +85,7 @@ log.debug("\tat: " + atFile); } - gauges.add(new ImportGauge(from, to, staFile, atFile)); + gauges.add(new ImportGauge(range, staFile, atFile)); } } finally {