changeset 7886:952b57b43e2f

Importer: depths are always numbers assumed to represent centimeters.
author Tom Gottfried <tom@intevation.de>
date Fri, 16 May 2014 17:51:55 +0200
parents 2e30d2c725fa
children 9c118aeec992
files backend/src/main/java/org/dive4elements/river/importer/parsers/PorosityParser.java backend/src/main/java/org/dive4elements/river/importer/parsers/SedimentDensityParser.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/PorosityParser.java	Fri May 16 17:12:36 2014 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/PorosityParser.java	Fri May 16 17:51:55 2014 +0200
@@ -38,7 +38,7 @@
         NumberFormat.getInstance(DEFAULT_LOCALE);
 
     public static final Pattern META_DEPTH =
-        Pattern.compile("^Tiefe: (\\w++)-(\\w++)( (\\w++))?.*");
+        Pattern.compile("^Tiefe: (\\d++)-(\\d++).*");
 
     public static final Pattern META_TIMEINTERVAL =
         Pattern.compile("^Zeitraum: (\\d{4})-(\\d{4}).*");
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/SedimentDensityParser.java	Fri May 16 17:12:36 2014 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/SedimentDensityParser.java	Fri May 16 17:51:55 2014 +0200
@@ -37,7 +37,7 @@
         NumberFormat.getInstance(DEFAULT_LOCALE);
 
     public static final Pattern META_DEPTH =
-        Pattern.compile("^Tiefe: (\\w++)-(\\w++)( (\\w++))?.*");
+        Pattern.compile("^Tiefe: (\\d++)-(\\d++).*");
 
     public static final Pattern META_YEAR =
         Pattern.compile("^Jahr: (\\d{4}).*");

http://dive4elements.wald.intevation.org