comparison backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java @ 8554:3a0522f1a532

Morphological width imported and stored with heights is redundant to table morphologic_width.
author "Tom Gottfried <tom@intevation.de>"
date Mon, 16 Feb 2015 09:00:08 +0100
parents cf8d37ed4d34
children d115d0ed6624
comparison
equal deleted inserted replaced
8553:17c476e90c07 8554:3a0522f1a532
110 catch (ParseException e) { 110 catch (ParseException e) {
111 log.warn("BSP: unparseable sounding width " + values[4]); 111 log.warn("BSP: unparseable sounding width " + values[4]);
112 } 112 }
113 } 113 }
114 114
115 Double width = null;
116 if (values[5].length() > 0) {
117 try {
118 width = new Double(nf.parse(values[5]).doubleValue());
119 }
120 catch (ParseException e) {
121 log.warn("BSP: unparseable width " + values[5]);
122 }
123 }
124
125 ImportBedHeightSingleValue value = new ImportBedHeightSingleValue( 115 ImportBedHeightSingleValue value = new ImportBedHeightSingleValue(
126 (ImportBedHeightSingle) obj, 116 (ImportBedHeightSingle) obj,
127 km, 117 km,
128 height, 118 height,
129 uncertainty, 119 uncertainty,
130 dataGap, 120 dataGap,
131 soundingWidth, 121 soundingWidth);
132 width);
133 122
134 obj.addValue(value); 123 obj.addValue(value);
135 } 124 }
136 } 125 }
137 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 126 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org