annotate backend/src/main/java/org/dive4elements/river/importer/Config.java @ 7926:e3b74679b2b4

Complete rev7925.
author "Tom Gottfried <tom@intevation.de>"
date Tue, 10 Jun 2014 15:27:31 +0200
parents 06a4071143b0
children fd3a24336e6a
rev   line source
5844
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
2 * Software engineering by Intevation GmbH
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
3 *
5992
4c3ccf2b0304 Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5844
diff changeset
4 * This file is Free Software under the GNU AGPL (>=v3)
5844
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
5992
4c3ccf2b0304 Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5844
diff changeset
6 * documentation coming with Dive4Elements River for details.
5844
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
7 */
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
8
5829
18619c1e7c2a Repaired internal references.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5828
diff changeset
9 package org.dive4elements.river.importer;
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
10
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
11 public class Config
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
12 {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
13 public static final String SKIP_DEFAULT =
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
14 "flys.backend.importer.skip.default";
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
15
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
16 public static final String DRY_RUN =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
17 "flys.backend.importer.dry.run";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
18
2804
68d1661a57cf Added a new config option to specify a INFO.gew file by system property.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1223
diff changeset
19 public static final String INFO_GEW_FILE =
68d1661a57cf Added a new config option to specify a INFO.gew file by system property.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1223
diff changeset
20 "flys.backend.importer.infogew.file";
68d1661a57cf Added a new config option to specify a INFO.gew file by system property.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1223
diff changeset
21
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
22 public static final String ANNOTATION_TYPES =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
23 "flys.backend.importer.annotation.types";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
24
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
25 public static final String SKIP_GAUGES =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
26 "flys.backend.importer.skip.gauges";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
27
5018
e939098ee272 run_hydr_morph.sh,Config: Add flags for importer to skip bwastr_id.csv parsing.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4744
diff changeset
28 public static final String SKIP_BWASTR =
e939098ee272 run_hydr_morph.sh,Config: Add flags for importer to skip bwastr_id.csv parsing.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4744
diff changeset
29 "flys.backend.importer.skip.bwastr";
e939098ee272 run_hydr_morph.sh,Config: Add flags for importer to skip bwastr_id.csv parsing.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4744
diff changeset
30
4135
ac93f397018d Importer: Ignore historical discharge tables.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3797
diff changeset
31 public static final String SKIP_HISTORICAL_DISCHARGE_TABLES =
ac93f397018d Importer: Ignore historical discharge tables.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3797
diff changeset
32 "flys.backend.importer.skip.historical.discharge.tables";
ac93f397018d Importer: Ignore historical discharge tables.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3797
diff changeset
33
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
34 public static final String SKIP_ANNOTATIONS =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
35 "flys.backend.importer.skip.annotations";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
36
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
37 public static final String SKIP_PRFS =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
38 "flys.backend.importer.skip.prfs";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
39
4744
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
40 public static final String SKIP_DA50S =
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
41 "flys.backend.importer.skip.da50s";
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
42
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
43 public static final String SKIP_W80S =
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
44 "flys.backend.importer.skip.w80s";
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
45
5807
b9ae676a9afe Config: Add new flag to skip w80-csv imports (which are not done yet anyways).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5018
diff changeset
46 public static final String SKIP_W80_CSVS =
b9ae676a9afe Config: Add new flag to skip w80-csv imports (which are not done yet anyways).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5018
diff changeset
47 "flys.backend.importer.skip.w80.csvs";
b9ae676a9afe Config: Add new flag to skip w80-csv imports (which are not done yet anyways).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5018
diff changeset
48
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
49 public static final String SKIP_HYKS =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
50 "flys.backend.importer.skip.hyks";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
51
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
52 public static final String SKIP_WST =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
53 "flys.backend.importer.skip.wst";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
54
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
55 public static final String SKIP_EXTRA_WSTS =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
56 "flys.backend.importer.skip.extra.wsts";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
57
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
58 public static final String SKIP_FIXATIONS =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
59 "flys.backend.importer.skip.fixations";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
60
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
61 public static final String SKIP_OFFICIAL_LINES =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
62 "flys.backend.importer.skip.official.lines";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
63
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
64 public static final String SKIP_FLOOD_WATER =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
65 "flys.backend.importer.skip.flood.water";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
66
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
67 public static final String SKIP_FLOOD_PROTECTION =
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
68 "flys.backend.importer.skip.flood.protection";
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
69
2810
04eeb45df27b Implemented model classes and importer classes for bed height epochs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2806
diff changeset
70 public static final String SKIP_BED_HEIGHT_SINGLE =
04eeb45df27b Implemented model classes and importer classes for bed height epochs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2806
diff changeset
71 "flys.backend.importer.skip.bed.height.single";
04eeb45df27b Implemented model classes and importer classes for bed height epochs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2806
diff changeset
72
4711
35dd03e04e38 Added new parameter SKIP_DA66S to importer.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4193
diff changeset
73 public static final String SKIP_DA66S =
35dd03e04e38 Added new parameter SKIP_DA66S to importer.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4193
diff changeset
74 "flys.backend.importer.skip.da66s";
35dd03e04e38 Added new parameter SKIP_DA66S to importer.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4193
diff changeset
75
2814
bfd6a7ef0ad5 Added a new config option to skip parsing MINFO sediment density values.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2810
diff changeset
76 public static final String SKIP_SEDIMENT_DENSITY =
bfd6a7ef0ad5 Added a new config option to skip parsing MINFO sediment density values.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2810
diff changeset
77 "flys.backend.importer.skip.sediment.density";
bfd6a7ef0ad5 Added a new config option to skip parsing MINFO sediment density values.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2810
diff changeset
78
7841
8036688f24e1 Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents: 7730
diff changeset
79 public static final String SKIP_POROSITY =
8036688f24e1 Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents: 7730
diff changeset
80 "flys.backend.importer.skip.porosity";
8036688f24e1 Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents: 7730
diff changeset
81
2820
7dffd28271d0 Added a config option to skip parsing morphological widths.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2814
diff changeset
82 public static final String SKIP_MORPHOLOGICAL_WIDTH =
7dffd28271d0 Added a config option to skip parsing morphological widths.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2814
diff changeset
83 "flys.backend.importer.skip.morphological.width";
7dffd28271d0 Added a config option to skip parsing morphological widths.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2814
diff changeset
84
2826
c3f8cf0cdf69 Prepared the importer to parse flow velocity files and added a config option to skip that process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2820
diff changeset
85 public static final String SKIP_FLOW_VELOCITY =
c3f8cf0cdf69 Prepared the importer to parse flow velocity files and added a config option to skip that process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2820
diff changeset
86 "flys.backend.importer.skip.flow.velocity";
c3f8cf0cdf69 Prepared the importer to parse flow velocity files and added a config option to skip that process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2820
diff changeset
87
2839
163c037f2c7e Added config option to skip parsing sediment yield data and prepared the importer to read/store those data.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2826
diff changeset
88 public static final String SKIP_SEDIMENT_YIELD =
163c037f2c7e Added config option to skip parsing sediment yield data and prepared the importer to read/store those data.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2826
diff changeset
89 "flys.backend.importer.skip.sediment.yield";
163c037f2c7e Added config option to skip parsing sediment yield data and prepared the importer to read/store those data.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2826
diff changeset
90
2844
c4db0f75a94a Prepared the importer to import MINFO specific waterlevel values and added a stub for a parser.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2839
diff changeset
91 public static final String SKIP_WATERLEVELS =
c4db0f75a94a Prepared the importer to import MINFO specific waterlevel values and added a stub for a parser.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2839
diff changeset
92 "flys.backend.importer.skip.waterlevels";
c4db0f75a94a Prepared the importer to import MINFO specific waterlevel values and added a stub for a parser.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2839
diff changeset
93
2851
acb8d08f59a2 Parse and store MINFO waterlevel differences; added config option to skip this process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2844
diff changeset
94 public static final String SKIP_WATERLEVEL_DIFFERENCES =
acb8d08f59a2 Parse and store MINFO waterlevel differences; added config option to skip this process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2844
diff changeset
95 "flys.backend.importer.skip.waterlevel.differences";
acb8d08f59a2 Parse and store MINFO waterlevel differences; added config option to skip this process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2844
diff changeset
96
4193
f63b39799d2d Adapted DB schema (added relation measurement_station); improved importer to read files from filesystem with measurement stations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 4135
diff changeset
97 public static final String SKIP_MEASUREMENT_STATIONS =
f63b39799d2d Adapted DB schema (added relation measurement_station); improved importer to read files from filesystem with measurement stations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 4135
diff changeset
98 "flys.backend.importer.skip.measurement.stations";
f63b39799d2d Adapted DB schema (added relation measurement_station); improved importer to read files from filesystem with measurement stations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 4135
diff changeset
99
3328
a41f279a66e2 Added parser and import classes to import MINFO sq relations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2851
diff changeset
100 public static final String SKIP_SQ_RELATION =
a41f279a66e2 Added parser and import classes to import MINFO sq relations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2851
diff changeset
101 "flys.backend.importer.skip.sq.relation";
a41f279a66e2 Added parser and import classes to import MINFO sq relations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2851
diff changeset
102
5083
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
103 public static final Double CROSS_SECTION_SIMPLIFICATION_EPSILON =
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
104 getDouble("flys.backend.importer.cross.section.simplification.epsilon");
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
105
2806
33f40b23edd8 Initial checkin for parsing MINFO bed heights.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2804
diff changeset
106
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
107 public static final Config INSTANCE = new Config();
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
108
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
109 private Config () {
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
110 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
111
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
112 public static final boolean getFlag(String key) {
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
113 String flag = System.getProperty(key);
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
114 return flag != null
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
115 ? Boolean.valueOf(flag)
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
116 : Boolean.getBoolean(SKIP_DEFAULT);
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
117 }
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
118
5083
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
119 public static final Double getDouble(String key) {
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
120 try {
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
121 String value = System.getProperty(key);
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
122 return value != null
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
123 ? Double.valueOf(value)
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
124 : null;
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
125 } catch (NumberFormatException nfe) {
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
126 return null;
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
127 }
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
128 }
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
129
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
130 public Double getCrossSectionSimplificationEpsilon() {
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
131 return CROSS_SECTION_SIMPLIFICATION_EPSILON;
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
132 }
7bbee0cfc171 Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4744
diff changeset
133
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
134 public boolean dryRun() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
135 return getFlag(DRY_RUN);
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
136 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
137
2804
68d1661a57cf Added a new config option to specify a INFO.gew file by system property.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1223
diff changeset
138 public String getInfoGewFile() {
68d1661a57cf Added a new config option to specify a INFO.gew file by system property.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1223
diff changeset
139 return System.getProperty(INFO_GEW_FILE);
68d1661a57cf Added a new config option to specify a INFO.gew file by system property.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1223
diff changeset
140 }
68d1661a57cf Added a new config option to specify a INFO.gew file by system property.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1223
diff changeset
141
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
142 public String getAnnotationTypes() {
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
143 return System.getProperty(ANNOTATION_TYPES);
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
144 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
145
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
146 public boolean skipGauges() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
147 return getFlag(SKIP_GAUGES);
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
148 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
149
4135
ac93f397018d Importer: Ignore historical discharge tables.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3797
diff changeset
150 public boolean skipHistoricalDischargeTables() {
ac93f397018d Importer: Ignore historical discharge tables.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3797
diff changeset
151 return getFlag(SKIP_HISTORICAL_DISCHARGE_TABLES);
ac93f397018d Importer: Ignore historical discharge tables.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3797
diff changeset
152 }
ac93f397018d Importer: Ignore historical discharge tables.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3797
diff changeset
153
5018
e939098ee272 run_hydr_morph.sh,Config: Add flags for importer to skip bwastr_id.csv parsing.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4744
diff changeset
154 public boolean skipBWASTR() {
e939098ee272 run_hydr_morph.sh,Config: Add flags for importer to skip bwastr_id.csv parsing.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4744
diff changeset
155 return getFlag(SKIP_BWASTR);
e939098ee272 run_hydr_morph.sh,Config: Add flags for importer to skip bwastr_id.csv parsing.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4744
diff changeset
156 }
e939098ee272 run_hydr_morph.sh,Config: Add flags for importer to skip bwastr_id.csv parsing.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4744
diff changeset
157
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
158 public boolean skipAnnotations() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
159 return getFlag(SKIP_ANNOTATIONS);
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
160 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
161
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
162 public boolean skipPRFs() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
163 return getFlag(SKIP_PRFS);
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
164 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
165
4744
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
166 public boolean skipDA50s() {
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
167 return getFlag(SKIP_DA50S);
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
168 }
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
169
5807
b9ae676a9afe Config: Add new flag to skip w80-csv imports (which are not done yet anyways).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5018
diff changeset
170 public boolean skipW80CSVs() {
b9ae676a9afe Config: Add new flag to skip w80-csv imports (which are not done yet anyways).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5018
diff changeset
171 return getFlag(SKIP_W80_CSVS);
b9ae676a9afe Config: Add new flag to skip w80-csv imports (which are not done yet anyways).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5018
diff changeset
172 }
b9ae676a9afe Config: Add new flag to skip w80-csv imports (which are not done yet anyways).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5018
diff changeset
173
4744
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
174 public boolean skipW80s() {
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
175 return getFlag(SKIP_W80S);
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
176 }
e825a5780a90 Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4711
diff changeset
177
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
178 public boolean skipHYKs() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
179 return getFlag(SKIP_HYKS);
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
180 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
181
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
182 public boolean skipWst() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
183 return getFlag(SKIP_WST);
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
184 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
185
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
186 public boolean skipExtraWsts() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
187 return getFlag(SKIP_EXTRA_WSTS);
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
188 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
189
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
190 public boolean skipFixations() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
191 return getFlag(SKIP_FIXATIONS);
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
192 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
193
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
194 public boolean skipOfficialLines() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
195 return getFlag(SKIP_OFFICIAL_LINES);
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
196 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
197
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
198 public boolean skipFloodWater() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
199 return getFlag(SKIP_FLOOD_WATER);
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
200 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
201
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
202 public boolean skipFloodProtection() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
203 return getFlag(SKIP_FLOOD_PROTECTION);
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
204 }
2806
33f40b23edd8 Initial checkin for parsing MINFO bed heights.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2804
diff changeset
205
4711
35dd03e04e38 Added new parameter SKIP_DA66S to importer.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4193
diff changeset
206 public boolean skipDA66s() {
35dd03e04e38 Added new parameter SKIP_DA66S to importer.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4193
diff changeset
207 return getFlag(SKIP_DA66S);
35dd03e04e38 Added new parameter SKIP_DA66S to importer.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4193
diff changeset
208 }
35dd03e04e38 Added new parameter SKIP_DA66S to importer.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4193
diff changeset
209
2810
04eeb45df27b Implemented model classes and importer classes for bed height epochs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2806
diff changeset
210 public boolean skipBedHeightSingle() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
211 return getFlag(SKIP_BED_HEIGHT_SINGLE);
2810
04eeb45df27b Implemented model classes and importer classes for bed height epochs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2806
diff changeset
212 }
04eeb45df27b Implemented model classes and importer classes for bed height epochs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2806
diff changeset
213
2814
bfd6a7ef0ad5 Added a new config option to skip parsing MINFO sediment density values.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2810
diff changeset
214 public boolean skipSedimentDensity() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
215 return getFlag(SKIP_SEDIMENT_DENSITY);
2814
bfd6a7ef0ad5 Added a new config option to skip parsing MINFO sediment density values.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2810
diff changeset
216 }
2820
7dffd28271d0 Added a config option to skip parsing morphological widths.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2814
diff changeset
217
7841
8036688f24e1 Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents: 7730
diff changeset
218 public boolean skipPorosity() {
8036688f24e1 Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents: 7730
diff changeset
219 return getFlag(SKIP_POROSITY);
8036688f24e1 Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents: 7730
diff changeset
220 }
8036688f24e1 Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents: 7730
diff changeset
221
2820
7dffd28271d0 Added a config option to skip parsing morphological widths.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2814
diff changeset
222 public boolean skipMorphologicalWidth() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
223 return getFlag(SKIP_MORPHOLOGICAL_WIDTH);
2820
7dffd28271d0 Added a config option to skip parsing morphological widths.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2814
diff changeset
224 }
2826
c3f8cf0cdf69 Prepared the importer to parse flow velocity files and added a config option to skip that process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2820
diff changeset
225
c3f8cf0cdf69 Prepared the importer to parse flow velocity files and added a config option to skip that process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2820
diff changeset
226 public boolean skipFlowVelocity() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
227 return getFlag(SKIP_FLOW_VELOCITY);
2826
c3f8cf0cdf69 Prepared the importer to parse flow velocity files and added a config option to skip that process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2820
diff changeset
228 }
2839
163c037f2c7e Added config option to skip parsing sediment yield data and prepared the importer to read/store those data.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2826
diff changeset
229
163c037f2c7e Added config option to skip parsing sediment yield data and prepared the importer to read/store those data.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2826
diff changeset
230 public boolean skipSedimentYield() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
231 return getFlag(SKIP_SEDIMENT_YIELD);
2839
163c037f2c7e Added config option to skip parsing sediment yield data and prepared the importer to read/store those data.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2826
diff changeset
232 }
2844
c4db0f75a94a Prepared the importer to import MINFO specific waterlevel values and added a stub for a parser.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2839
diff changeset
233
c4db0f75a94a Prepared the importer to import MINFO specific waterlevel values and added a stub for a parser.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2839
diff changeset
234 public boolean skipWaterlevels() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
235 return getFlag(SKIP_WATERLEVELS);
2844
c4db0f75a94a Prepared the importer to import MINFO specific waterlevel values and added a stub for a parser.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2839
diff changeset
236 }
2851
acb8d08f59a2 Parse and store MINFO waterlevel differences; added config option to skip this process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2844
diff changeset
237
acb8d08f59a2 Parse and store MINFO waterlevel differences; added config option to skip this process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2844
diff changeset
238 public boolean skipWaterlevelDifferences() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
239 return getFlag(SKIP_WATERLEVEL_DIFFERENCES);
2851
acb8d08f59a2 Parse and store MINFO waterlevel differences; added config option to skip this process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2844
diff changeset
240 }
3328
a41f279a66e2 Added parser and import classes to import MINFO sq relations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2851
diff changeset
241
4193
f63b39799d2d Adapted DB schema (added relation measurement_station); improved importer to read files from filesystem with measurement stations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 4135
diff changeset
242 public boolean skipMeasurementStations() {
f63b39799d2d Adapted DB schema (added relation measurement_station); improved importer to read files from filesystem with measurement stations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 4135
diff changeset
243 return getFlag(SKIP_MEASUREMENT_STATIONS);
f63b39799d2d Adapted DB schema (added relation measurement_station); improved importer to read files from filesystem with measurement stations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 4135
diff changeset
244 }
f63b39799d2d Adapted DB schema (added relation measurement_station); improved importer to read files from filesystem with measurement stations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 4135
diff changeset
245
3328
a41f279a66e2 Added parser and import classes to import MINFO sq relations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2851
diff changeset
246 public boolean skipSQRelation() {
3797
0f99e9f1a2ca Importer: Added flag to invert skipping behaviour by default. Makes importing single features much easier.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3328
diff changeset
247 return getFlag(SKIP_SQ_RELATION);
3328
a41f279a66e2 Added parser and import classes to import MINFO sq relations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2851
diff changeset
248 }
1223
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
249 }
268f8da412e3 Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
250 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org