Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java @ 2860:2f874d14ac68
Use Doubles to store meassure points of profiles.
flys-backend/trunk@4325 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 02 May 2012 08:49:57 +0000 |
parents | acb8d08f59a2 |
children | 8f905390c10d |
comparison
equal
deleted
inserted
replaced
2859:ed13816047b3 | 2860:2f874d14ac68 |
---|---|
852 | 852 |
853 List<ImportCrossSectionLine> lines = | 853 List<ImportCrossSectionLine> lines = |
854 new ArrayList<ImportCrossSectionLine>(); | 854 new ArrayList<ImportCrossSectionLine>(); |
855 | 855 |
856 for (Map.Entry<Double, List<XY>> entry: parser.getData().entrySet()) { | 856 for (Map.Entry<Double, List<XY>> entry: parser.getData().entrySet()) { |
857 BigDecimal km = new BigDecimal(entry.getKey()); | 857 Double km = entry.getKey(); |
858 List<XY> points = entry.getValue(); | 858 List<XY> points = entry.getValue(); |
859 lines.add(new ImportCrossSectionLine(km, points)); | 859 lines.add(new ImportCrossSectionLine(km, points)); |
860 } | 860 } |
861 | 861 |
862 crossSections.add(new ImportCrossSection( | 862 crossSections.add(new ImportCrossSection( |