[Dive4elements-commits] [PATCH 3 of 3] run_hydr_morph.sh, Config: Add flags for importer to skip bwastr_id.csv parsing

Wald Commits scm-commit at wald.intevation.org
Tue Feb 19 11:52:17 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1361271519 -3600
# Node ID e939098ee272a6cc237473f1cf8f573cf3496374
# Parent  51a353887871ca6cee66811cbdc90adad8c58722
run_hydr_morph.sh,Config: Add flags for importer to skip bwastr_id.csv parsing.

diff -r 51a353887871 -r e939098ee272 flys-backend/contrib/run_hydr_morph.sh
--- 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 \
diff -r 51a353887871 -r e939098ee272 flys-backend/src/main/java/de/intevation/flys/importer/Config.java
--- 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);
     }


More information about the Dive4elements-commits mailing list