comparison backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java @ 6047:1bb4b51ff1e6

BHP: do not import lines without useful data
author Tom Gottfried <tom.gottfried@intevation.de>
date Thu, 16 May 2013 20:11:53 +0200
parents 4c3ccf2b0304
children 53fca3392c9f
comparison
equal deleted inserted replaced
6046:4493ef20d357 6047:1bb4b51ff1e6
57 return; 57 return;
58 } 58 }
59 59
60 // Handle gaps like "10,0;;;;;". 60 // Handle gaps like "10,0;;;;;".
61 if (values.length == 1) { 61 if (values.length == 1) {
62 ImportBedHeightSingleValue value = new ImportBedHeightSingleValue( 62 // Do not import line without useful data
63 (ImportBedHeightSingle) obj,
64 km,
65 null, null, null, null, null);
66 obj.addValue(value);
67 return; 63 return;
68 } 64 }
69 65
70 // Because we cannot enforce consistency of values with complete data 66 // Because we cannot enforce consistency of values with complete data
71 // via null constraints in the database (as there are "gap" values), 67 // via null constraints in the database (as there are "gap" values),

http://dive4elements.wald.intevation.org