Mercurial > dive4elements > river
changeset 5176:6553c8e364db
import gauge number by default (made by S. Teichmann)
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 06 Mar 2013 15:46:40 +0100 |
parents | b3a15fa3d88e |
children | 08c5e3a646dc |
files | flys-backend/contrib/import_river.sh flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-backend/contrib/import_river.sh Tue Mar 05 18:54:28 2013 +0100 +++ b/flys-backend/contrib/import_river.sh Wed Mar 06 15:46:40 2013 +0100 @@ -209,7 +209,6 @@ -Dflys.backend.importer.skip.flood.water=false \ -Dflys.backend.importer.skip.flood.protection=false \ -Dflys.backend.importer.skip.gauges=false \ - -Dflys.backend.sta.parse.gauge.numbers=true \ -Dflys.backend.importer.skip.historical.discharge.tables=false \ -Dflys.backend.importer.skip.hyks=false \ -Dflys.backend.importer.skip.official.lines=false \
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java Tue Mar 05 18:54:28 2013 +0100 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java Wed Mar 06 15:46:40 2013 +0100 @@ -30,8 +30,8 @@ public static final String TYPES = System.getProperty("flys.backend.main.value.types", "QWTD"); - public static final boolean PARSE_GAUGE_NUMBERS = - Boolean.getBoolean("flys.backend.sta.parse.gauge.numbers"); + public static final boolean NOT_PARSE_GAUGE_NUMBERS = + Boolean.getBoolean("flys.backend.sta.not.parse.gauge.numbers"); public static final Pattern QWTD_ = Pattern.compile("\\s*([^\\s]+)\\s+([^\\s]+)\\s+([" + @@ -68,7 +68,7 @@ Long gaugeNumber = null; - if (PARSE_GAUGE_NUMBERS) { + if (!NOT_PARSE_GAUGE_NUMBERS) { String gaugeNumberString = line.substring(0, 16).trim(); try {