Mercurial > dive4elements > river
annotate backend/src/main/java/org/dive4elements/river/importer/Config.java @ 9650:a2a42a6bac6b
Importer (s/u-info) extensions:
outer try/catch for parse and log of line no,
catching parsing exception if not enough value fields,
parsing error and warning log messages with line number,
detecting and rejecting duplicate data series,
better differentiation between error and warning log messages
author | mschaefer |
---|---|
date | Mon, 23 Mar 2020 14:57:03 +0100 |
parents | 66a43d9f65c8 |
children |
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
14 "flys.backend.importer.skip.default"; |
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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
17 "flys.backend.importer.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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
20 "flys.backend.importer.infogew.file"; |
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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
23 "flys.backend.importer.annotation.types"; |
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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
26 "flys.backend.importer.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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
29 "flys.backend.importer.skip.bwastr"; |
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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
32 "flys.backend.importer.skip.historical.discharge.tables"; |
4135
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
35 "flys.backend.importer.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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
38 "flys.backend.importer.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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
41 "flys.backend.importer.skip.da50s"; |
4744
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
44 "flys.backend.importer.skip.w80s"; |
4744
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
47 "flys.backend.importer.skip.w80.csvs"; |
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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
50 "flys.backend.importer.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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
53 "flys.backend.importer.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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
56 "flys.backend.importer.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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
59 "flys.backend.importer.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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
62 "flys.backend.importer.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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
65 "flys.backend.importer.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
|
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
68 "flys.backend.importer.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
|
69 |
8559
6d8d7425a6b5
Bed heights are just bed heights since a while ('single' is obsolete).
"Tom Gottfried <tom@intevation.de>"
parents:
8056
diff
changeset
|
70 public static final String SKIP_BED_HEIGHT = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
71 "flys.backend.importer.skip.bed.height"; |
2810
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
74 "flys.backend.importer.skip.da66s"; |
4711
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
77 "flys.backend.importer.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
|
78 |
7841
8036688f24e1
Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents:
7730
diff
changeset
|
79 public static final String SKIP_POROSITY = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
80 "flys.backend.importer.skip.porosity"; |
7841
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
83 "flys.backend.importer.skip.morphological.width"; |
2820
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 = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
86 "flys.backend.importer.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
|
87 |
8032
fd3a24336e6a
SCHEMA CHANGE and Importer (only longitudinal section data so far): only grain fractions given now in schema are valid. We are handling sediment loads, not yields.
"Tom Gottfried <tom@intevation.de>"
parents:
7926
diff
changeset
|
88 public static final String SKIP_SEDIMENT_LOAD_LS = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
89 "flys.backend.importer.skip.sediment.load.ls"; |
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
|
90 |
8056
d86cc6a17b7a
Importer: Import sediment load at measurement stations.
Tom Gottfried <tom@intevation.de>
parents:
8032
diff
changeset
|
91 public static final String SKIP_SEDIMENT_LOAD = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
92 "flys.backend.importer.skip.sediment.load"; |
8056
d86cc6a17b7a
Importer: Import sediment load at measurement stations.
Tom Gottfried <tom@intevation.de>
parents:
8032
diff
changeset
|
93 |
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
|
94 public static final String SKIP_WATERLEVELS = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
95 "flys.backend.importer.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
|
96 |
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
|
97 public static final String SKIP_WATERLEVEL_DIFFERENCES = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
98 "flys.backend.importer.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
|
99 |
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
|
100 public static final String SKIP_MEASUREMENT_STATIONS = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
101 "flys.backend.importer.skip.measurement.stations"; |
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
|
102 |
3328
a41f279a66e2
Added parser and import classes to import MINFO sq relations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2851
diff
changeset
|
103 public static final String SKIP_SQ_RELATION = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
104 "flys.backend.importer.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
|
105 |
5083
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
106 public static final Double CROSS_SECTION_SIMPLIFICATION_EPSILON = |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
107 getDouble("flys.backend.importer.cross.section.simplification.epsilon"); |
5083
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
108 |
2806
33f40b23edd8
Initial checkin for parsing MINFO bed heights.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2804
diff
changeset
|
109 |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
110 private enum SInfoSkip { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
111 BED_MOBILITY("bed_mobility"), // |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
112 SELECTED_ADDITIONAL("selected_additional"), // |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
113 INFRASTRUCTURE("infrastructure"), // |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
114 CHANNEL("channel"), // |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
115 COLLISION("collision"), // |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
116 DAILY_DISCHARGE("daily_discharge"), // |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
117 TKH("tkh"), // |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
118 FLOW_DEPTH("flow_depth"), // |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
119 DEPTH_EVOLUTION("depth_evolution"); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
120 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
121 private final String name; |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
122 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
123 private SInfoSkip(final String suffix) { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
124 this.name = "flys.backend.importer.skip.sinfo." + suffix; |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
125 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
126 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
127 public String getName() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
128 return this.name; |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
129 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
130 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
131 public boolean getFlag() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
132 return Config.getFlag(getName()); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
133 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
134 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
135 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
136 private enum UInfoSkip { |
9408 | 137 SALIX("iota"), // |
9012 | 138 VEGETATION("vegetation"); |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
139 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
140 private final String name; |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
141 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
142 private UInfoSkip(final String suffix) { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
143 this.name = "flys.backend.importer.skip.uinfo." + suffix; |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
144 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
145 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
146 public String getName() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
147 return this.name; |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
148 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
149 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
150 public boolean getFlag() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
151 return Config.getFlag(getName()); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
152 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
153 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
154 |
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
|
155 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
|
156 |
8842 | 157 private Config() { |
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 } |
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
|
159 |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
160 public static final boolean getFlag(final String key) { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
161 final String flag = System.getProperty(key); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
162 return (flag != null) ? Boolean.valueOf(flag) : Boolean.getBoolean(SKIP_DEFAULT); |
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 } |
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
|
164 |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
165 public static final Double getDouble(final String key) { |
5083
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
166 try { |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
167 final String value = System.getProperty(key); |
5083
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
168 return value != null |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
169 ? Double.valueOf(value) |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
170 : null; |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
171 } catch (final NumberFormatException nfe) { |
5083
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
172 return null; |
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
173 } |
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
174 } |
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
175 |
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
176 public Double getCrossSectionSimplificationEpsilon() { |
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
177 return CROSS_SECTION_SIMPLIFICATION_EPSILON; |
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
178 } |
7bbee0cfc171
Added experimental Douglas Peuker simplification of cross sections.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4744
diff
changeset
|
179 |
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 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
|
181 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
|
182 } |
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
|
183 |
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
|
184 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
|
185 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
|
186 } |
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
|
187 |
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 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
|
189 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
|
190 } |
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
|
191 |
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 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
|
193 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
|
194 } |
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
|
195 |
4135
ac93f397018d
Importer: Ignore historical discharge tables.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
3797
diff
changeset
|
196 public boolean skipHistoricalDischargeTables() { |
ac93f397018d
Importer: Ignore historical discharge tables.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
3797
diff
changeset
|
197 return getFlag(SKIP_HISTORICAL_DISCHARGE_TABLES); |
ac93f397018d
Importer: Ignore historical discharge tables.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
3797
diff
changeset
|
198 } |
ac93f397018d
Importer: Ignore historical discharge tables.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
3797
diff
changeset
|
199 |
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
|
200 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
|
201 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
|
202 } |
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
|
203 |
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 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
|
205 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
|
206 } |
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
|
207 |
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
|
208 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
|
209 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
|
210 } |
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
|
211 |
4744
e825a5780a90
Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4711
diff
changeset
|
212 public boolean skipDA50s() { |
e825a5780a90
Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4711
diff
changeset
|
213 return getFlag(SKIP_DA50S); |
e825a5780a90
Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4711
diff
changeset
|
214 } |
e825a5780a90
Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4711
diff
changeset
|
215 |
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
|
216 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
|
217 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
|
218 } |
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
|
219 |
4744
e825a5780a90
Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4711
diff
changeset
|
220 public boolean skipW80s() { |
e825a5780a90
Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4711
diff
changeset
|
221 return getFlag(SKIP_W80S); |
e825a5780a90
Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4711
diff
changeset
|
222 } |
e825a5780a90
Conffig: Prepare skip_da50 and skip_w80 options.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4711
diff
changeset
|
223 |
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
|
224 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
|
225 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
|
226 } |
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
|
227 |
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
|
228 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
|
229 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
|
230 } |
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
|
231 |
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
|
232 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
|
233 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
|
234 } |
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
|
235 |
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
|
236 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
|
237 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
|
238 } |
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
|
239 |
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
|
240 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
|
241 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
|
242 } |
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
|
243 |
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
|
244 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
|
245 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
|
246 } |
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
|
247 |
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
|
248 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
|
249 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
|
250 } |
2806
33f40b23edd8
Initial checkin for parsing MINFO bed heights.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2804
diff
changeset
|
251 |
4711
35dd03e04e38
Added new parameter SKIP_DA66S to importer.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4193
diff
changeset
|
252 public boolean skipDA66s() { |
35dd03e04e38
Added new parameter SKIP_DA66S to importer.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4193
diff
changeset
|
253 return getFlag(SKIP_DA66S); |
35dd03e04e38
Added new parameter SKIP_DA66S to importer.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4193
diff
changeset
|
254 } |
35dd03e04e38
Added new parameter SKIP_DA66S to importer.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
4193
diff
changeset
|
255 |
8559
6d8d7425a6b5
Bed heights are just bed heights since a while ('single' is obsolete).
"Tom Gottfried <tom@intevation.de>"
parents:
8056
diff
changeset
|
256 public boolean skipBedHeight() { |
6d8d7425a6b5
Bed heights are just bed heights since a while ('single' is obsolete).
"Tom Gottfried <tom@intevation.de>"
parents:
8056
diff
changeset
|
257 return getFlag(SKIP_BED_HEIGHT); |
2810
04eeb45df27b
Implemented model classes and importer classes for bed height epochs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2806
diff
changeset
|
258 } |
04eeb45df27b
Implemented model classes and importer classes for bed height epochs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2806
diff
changeset
|
259 |
2814
bfd6a7ef0ad5
Added a new config option to skip parsing MINFO sediment density values.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2810
diff
changeset
|
260 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
|
261 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
|
262 } |
2820
7dffd28271d0
Added a config option to skip parsing morphological widths.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2814
diff
changeset
|
263 |
7841
8036688f24e1
Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents:
7730
diff
changeset
|
264 public boolean skipPorosity() { |
8036688f24e1
Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents:
7730
diff
changeset
|
265 return getFlag(SKIP_POROSITY); |
8036688f24e1
Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents:
7730
diff
changeset
|
266 } |
8036688f24e1
Parse and import porosities.
Raimund Renkert <rrenkert@intevation.de>
parents:
7730
diff
changeset
|
267 |
2820
7dffd28271d0
Added a config option to skip parsing morphological widths.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2814
diff
changeset
|
268 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
|
269 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
|
270 } |
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
|
271 |
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
|
272 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
|
273 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
|
274 } |
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
|
275 |
8032
fd3a24336e6a
SCHEMA CHANGE and Importer (only longitudinal section data so far): only grain fractions given now in schema are valid. We are handling sediment loads, not yields.
"Tom Gottfried <tom@intevation.de>"
parents:
7926
diff
changeset
|
276 public boolean skipSedimentLoadLS() { |
fd3a24336e6a
SCHEMA CHANGE and Importer (only longitudinal section data so far): only grain fractions given now in schema are valid. We are handling sediment loads, not yields.
"Tom Gottfried <tom@intevation.de>"
parents:
7926
diff
changeset
|
277 return getFlag(SKIP_SEDIMENT_LOAD_LS); |
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
|
278 } |
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
|
279 |
8056
d86cc6a17b7a
Importer: Import sediment load at measurement stations.
Tom Gottfried <tom@intevation.de>
parents:
8032
diff
changeset
|
280 public boolean skipSedimentLoad() { |
d86cc6a17b7a
Importer: Import sediment load at measurement stations.
Tom Gottfried <tom@intevation.de>
parents:
8032
diff
changeset
|
281 return getFlag(SKIP_SEDIMENT_LOAD); |
d86cc6a17b7a
Importer: Import sediment load at measurement stations.
Tom Gottfried <tom@intevation.de>
parents:
8032
diff
changeset
|
282 } |
d86cc6a17b7a
Importer: Import sediment load at measurement stations.
Tom Gottfried <tom@intevation.de>
parents:
8032
diff
changeset
|
283 |
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
|
284 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
|
285 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
|
286 } |
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
|
287 |
acb8d08f59a2
Parse and store MINFO waterlevel differences; added config option to skip this process.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2844
diff
changeset
|
288 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
|
289 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
|
290 } |
3328
a41f279a66e2
Added parser and import classes to import MINFO sq relations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2851
diff
changeset
|
291 |
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
|
292 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
|
293 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
|
294 } |
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
|
295 |
3328
a41f279a66e2
Added parser and import classes to import MINFO sq relations.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2851
diff
changeset
|
296 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
|
297 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
|
298 } |
8971
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
299 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
300 public boolean skipSInfoBedMobility() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
301 return SInfoSkip.BED_MOBILITY.getFlag(); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
302 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
303 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
304 public boolean skipSInfoSelectedAdditional() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
305 return SInfoSkip.SELECTED_ADDITIONAL.getFlag(); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
306 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
307 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
308 public boolean skipSInfoInfrastructure() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
309 return SInfoSkip.INFRASTRUCTURE.getFlag(); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
310 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
311 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
312 public boolean skipSInfoChannel() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
313 return SInfoSkip.CHANNEL.getFlag(); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
314 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
315 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
316 public boolean skipSInfoCollision() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
317 return SInfoSkip.COLLISION.getFlag(); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
318 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
319 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
320 public boolean skipSInfoDailyDischarge() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
321 return SInfoSkip.DAILY_DISCHARGE.getFlag(); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
322 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
323 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
324 public boolean skipSInfoTkh() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
325 return SInfoSkip.TKH.getFlag(); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
326 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
327 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
328 public boolean skipSInfoFlowDepth() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
329 return SInfoSkip.FLOW_DEPTH.getFlag(); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
330 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
331 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
332 public boolean skipSInfoDepthEvolution() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
333 return SInfoSkip.DEPTH_EVOLUTION.getFlag(); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
334 } |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
335 |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
336 public boolean skipUInfoSalix() { |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
337 return UInfoSkip.SALIX.getFlag(); |
50416a0df385
Importer for the Schifffahrt (S-INFO) and Oekologie (U-INFO) files
mschaefer
parents:
8842
diff
changeset
|
338 } |
9012 | 339 |
340 public boolean skipUInfoVegetation() { | |
341 return UInfoSkip.VEGETATION.getFlag(); | |
342 } | |
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
|
343 } |
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
|
344 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |