comparison backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java @ 7417:cf8d37ed4d34

BedHeightSingleParser: fix no-data-line detection.
author Tom Gottfried <tom@intevation.de>
date Wed, 23 Oct 2013 09:59:46 +0200
parents 495cde925702
children 3a0522f1a532
comparison
equal deleted inserted replaced
7416:f26e7d386d8c 7417:cf8d37ed4d34
60 // We expect a lot of ";;;;;;" lines. 60 // We expect a lot of ";;;;;;" lines.
61 return; 61 return;
62 } 62 }
63 63
64 // Handle gaps like "10,0;;;;;". 64 // Handle gaps like "10,0;;;;;".
65 if (values.length == 1) { 65 if (values.length <= 2) {
66 // Do not import line without useful data 66 // Do not import line without useful data
67 return; 67 if (values.length < 2) {
68 return;
69 }
70 if (values[1].length() == 0) {
71 return;
72 }
68 } 73 }
69 74
70 Double height = null; 75 Double height = null;
71 if (values[1].length() > 0) { 76 if (values[1].length() > 0) {
72 try { 77 try {

http://dive4elements.wald.intevation.org