comparison backend/src/main/java/org/dive4elements/river/importer/ImportRiver.java @ 7735:46273d890da5

Cross section importer: avoid logging of unused feature.
author Tom Gottfried <tom@intevation.de>
date Wed, 22 Jan 2014 13:26:35 +0100
parents e1b831fe435a
children 24408bce2fdb
comparison
equal deleted inserted replaced
7733:228be10e6165 7735:46273d890da5
250 lines.add(new ImportCrossSectionLine(km, points)); 250 lines.add(new ImportCrossSectionLine(km, points));
251 } 251 }
252 252
253 ImportRiver.this.addCrossSections(description, ti, lines); 253 ImportRiver.this.addCrossSections(description, ti, lines);
254 254
255 double percent = numReadPoints > 0L 255 if (simplificationEpsilon != null) {
256 ? ((double)numRemainingPoints/numReadPoints)*100d 256 double percent = numReadPoints > 0L
257 : 0d; 257 ? ((double)numRemainingPoints/numReadPoints)*100d
258 258 : 0d;
259 log.info(String.format( 259
260 "Number of points in cross section: %d / %d (%.2f%%)", 260 log.info(String.format(
261 numReadPoints, numRemainingPoints, percent)); 261 "Number of points in cross section: %d / %d (%.2f%%)",
262 numReadPoints, numRemainingPoints, percent));
263 }
262 } 264 }
263 } // ImportRiverCrossSectionParserCallback 265 } // ImportRiverCrossSectionParserCallback
264 266
265 267
266 private void addCrossSections( 268 private void addCrossSections(

http://dive4elements.wald.intevation.org