[Dive4elements-commits] [PATCH] Write filename as description instead of the header meta line in flow velocity

Wald Commits scm-commit at wald.intevation.org
Fri Apr 5 11:18:19 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1365153496 -7200
# Node ID 91a2ddffea47baa4032f66df9e449129bed030af
# Parent  2a058dff966625e3f2bc4e167d3e0320fadeea17
Write filename as description instead of the header meta line in flow velocity
measurements.

diff -r 2a058dff9666 -r 91a2ddffea47 flys-backend/src/main/java/de/intevation/flys/importer/parsers/FlowVelocityMeasurementParser.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/FlowVelocityMeasurementParser.java	Fri Apr 05 09:56:02 2013 +0200
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/FlowVelocityMeasurementParser.java	Fri Apr 05 11:18:16 2013 +0200
@@ -48,6 +48,7 @@
 
     @Override
     protected void finish() {
+        current.setDescription(fileName);
         measurements.add(current);
     }
 
@@ -64,8 +65,6 @@
 
 
     public void handleMetaLine(String line) {
-        line = line.replace(";", "");
-        current.setDescription(line);
     }
 
 


More information about the Dive4elements-commits mailing list