changeset 5018:e939098ee272

run_hydr_morph.sh,Config: Add flags for importer to skip bwastr_id.csv parsing.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 19 Feb 2013 11:58:39 +0100
parents 51a353887871
children c872249ec9a9
files flys-backend/contrib/run_hydr_morph.sh flys-backend/src/main/java/de/intevation/flys/importer/Config.java
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/contrib/run_hydr_morph.sh	Tue Feb 19 11:23:57 2013 +0100
+++ b/flys-backend/contrib/run_hydr_morph.sh	Tue Feb 19 11:58:39 2013 +0100
@@ -26,6 +26,7 @@
 
 IMPORTER_SKIP_GAUGES=false
 IMPORTER_SKIP_HISTORICAL_DISCHARGE_GAUGES=false
+IMPORTER_SKIP_BWASTR=false
 IMPORTER_SKIP_ANNOTATIONS=false
 IMPORTER_SKIP_WST=false
 IMPORTER_SKIP_PRFS=false
@@ -81,6 +82,7 @@
     -Dflys.backend.importer.annotation.types=$IMPORTER_ANNOTATION_TYPES \
     -Dflys.backend.importer.dry.run=$IMPORTER_DRY_RUN \
     -Dflys.backend.importer.skip.historical.discharge.tables=$IMPORTER_SKIP_HISTORICAL_DISCHARGE_GAUGES \
+    -Dflys.backend.importer.skip.bwastr=$IMPORTER_SKIP_BWASTR \
     -Dflys.backend.importer.skip.gauges=$IMPORTER_SKIP_GAUGES \
     -Dflys.backend.importer.skip.annotations=$IMPORTER_SKIP_ANNOTATIONS \
     -Dflys.backend.importer.skip.prfs=$IMPORTER_SKIP_PRFS \
--- a/flys-backend/src/main/java/de/intevation/flys/importer/Config.java	Tue Feb 19 11:23:57 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/Config.java	Tue Feb 19 11:58:39 2013 +0100
@@ -17,6 +17,9 @@
     public static final String SKIP_GAUGES =
         "flys.backend.importer.skip.gauges";
 
+    public static final String SKIP_BWASTR =
+        "flys.backend.importer.skip.bwastr";
+
     public static final String SKIP_HISTORICAL_DISCHARGE_TABLES =
         "flys.backend.importer.skip.historical.discharge.tables";
 
@@ -119,6 +122,10 @@
         return getFlag(SKIP_HISTORICAL_DISCHARGE_TABLES);
     }
 
+    public boolean skipBWASTR() {
+        return getFlag(SKIP_BWASTR);
+    }
+
     public boolean skipAnnotations() {
         return getFlag(SKIP_ANNOTATIONS);
     }

http://dive4elements.wald.intevation.org