changeset 5508:c6e552348934

SedimentDensityParser: don't try to guess year from comment column
author Tom Gottfried <tom.gottfried@intevation.de>
date Thu, 28 Mar 2013 16:43:20 +0100
parents db6c7268b08e
children d4bee6d5c866
files flys-backend/src/main/java/de/intevation/flys/importer/parsers/SedimentDensityParser.java
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/SedimentDensityParser.java	Thu Mar 28 16:41:30 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/SedimentDensityParser.java	Thu Mar 28 16:43:20 2013 +0100
@@ -150,21 +150,6 @@
 	}
 
         BigDecimal year = null;
-        try {
-            year =
-                new BigDecimal(nf.parse(vals[vals.length - 1]).doubleValue());
-        }
-        catch(ParseException pe) {
-            try {
-                Date d = DateGuesser.guessDate(vals[vals.length - 1]);
-                Calendar c = Calendar.getInstance();
-                c.setTime(d);
-                year = new BigDecimal(c.get(Calendar.YEAR));
-            }
-            catch (IllegalArgumentException iae) {
-                log.warn("Could not parse date in '" + line + "'");
-            }
-        }
 
         current.addValue(new ImportSedimentDensityValue(
             km,

http://dive4elements.wald.intevation.org