Mercurial > dive4elements > river
view flys-backend/src/main/java/de/intevation/flys/importer/Config.java @ 4837:9e25c7523485
Fixed calculation of effective width in MINFO SQ relation.
* Get all (including empty datasets) from db.
* Filter empty datasets when processing data of the same date.
* Added debug outputs.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 23 Jan 2013 11:14:41 +0100 |
parents | e825a5780a90 |
children | e939098ee272 7bbee0cfc171 |
line wrap: on
line source
package de.intevation.flys.importer; public class Config { public static final String SKIP_DEFAULT = "flys.backend.importer.skip.default"; public static final String DRY_RUN = "flys.backend.importer.dry.run"; public static final String INFO_GEW_FILE = "flys.backend.importer.infogew.file"; public static final String ANNOTATION_TYPES = "flys.backend.importer.annotation.types"; public static final String SKIP_GAUGES = "flys.backend.importer.skip.gauges"; public static final String SKIP_HISTORICAL_DISCHARGE_TABLES = "flys.backend.importer.skip.historical.discharge.tables"; public static final String SKIP_ANNOTATIONS = "flys.backend.importer.skip.annotations"; public static final String SKIP_PRFS = "flys.backend.importer.skip.prfs"; public static final String SKIP_DA50S = "flys.backend.importer.skip.da50s"; public static final String SKIP_W80S = "flys.backend.importer.skip.w80s"; public static final String SKIP_HYKS = "flys.backend.importer.skip.hyks"; public static final String SKIP_WST = "flys.backend.importer.skip.wst"; public static final String SKIP_EXTRA_WSTS = "flys.backend.importer.skip.extra.wsts"; public static final String SKIP_FIXATIONS = "flys.backend.importer.skip.fixations"; public static final String SKIP_OFFICIAL_LINES = "flys.backend.importer.skip.official.lines"; public static final String SKIP_FLOOD_WATER = "flys.backend.importer.skip.flood.water"; public static final String SKIP_FLOOD_PROTECTION = "flys.backend.importer.skip.flood.protection"; public static final String SKIP_BED_HEIGHT_SINGLE = "flys.backend.importer.skip.bed.height.single"; public static final String SKIP_DA66S = "flys.backend.importer.skip.da66s"; public static final String SKIP_BED_HEIGHT_EPOCH = "flys.backend.importer.skip.bed.height.epoch"; public static final String SKIP_SEDIMENT_DENSITY = "flys.backend.importer.skip.sediment.density"; public static final String SKIP_MORPHOLOGICAL_WIDTH = "flys.backend.importer.skip.morphological.width"; public static final String SKIP_FLOW_VELOCITY = "flys.backend.importer.skip.flow.velocity"; public static final String SKIP_SEDIMENT_YIELD = "flys.backend.importer.skip.sediment.yield"; public static final String SKIP_WATERLEVELS = "flys.backend.importer.skip.waterlevels"; public static final String SKIP_WATERLEVEL_DIFFERENCES = "flys.backend.importer.skip.waterlevel.differences"; public static final String SKIP_MEASUREMENT_STATIONS = "flys.backend.importer.skip.measurement.stations"; public static final String SKIP_SQ_RELATION = "flys.backend.importer.skip.sq.relation"; public static final Config INSTANCE = new Config(); private Config () { } public static final boolean getFlag(String key) { String flag = System.getProperty(key); return flag != null ? Boolean.valueOf(flag) : Boolean.getBoolean(SKIP_DEFAULT); } public boolean dryRun() { return getFlag(DRY_RUN); } public String getInfoGewFile() { return System.getProperty(INFO_GEW_FILE); } public String getAnnotationTypes() { return System.getProperty(ANNOTATION_TYPES); } public boolean skipGauges() { return getFlag(SKIP_GAUGES); } public boolean skipHistoricalDischargeTables() { return getFlag(SKIP_HISTORICAL_DISCHARGE_TABLES); } public boolean skipAnnotations() { return getFlag(SKIP_ANNOTATIONS); } public boolean skipPRFs() { return getFlag(SKIP_PRFS); } public boolean skipDA50s() { return getFlag(SKIP_DA50S); } public boolean skipW80s() { return getFlag(SKIP_W80S); } public boolean skipHYKs() { return getFlag(SKIP_HYKS); } public boolean skipWst() { return getFlag(SKIP_WST); } public boolean skipExtraWsts() { return getFlag(SKIP_EXTRA_WSTS); } public boolean skipFixations() { return getFlag(SKIP_FIXATIONS); } public boolean skipOfficialLines() { return getFlag(SKIP_OFFICIAL_LINES); } public boolean skipFloodWater() { return getFlag(SKIP_FLOOD_WATER); } public boolean skipFloodProtection() { return getFlag(SKIP_FLOOD_PROTECTION); } public boolean skipDA66s() { return getFlag(SKIP_DA66S); } public boolean skipBedHeightSingle() { return getFlag(SKIP_BED_HEIGHT_SINGLE); } public boolean skipBedHeightEpoch() { return getFlag(SKIP_BED_HEIGHT_EPOCH); } public boolean skipSedimentDensity() { return getFlag(SKIP_SEDIMENT_DENSITY); } public boolean skipMorphologicalWidth() { return getFlag(SKIP_MORPHOLOGICAL_WIDTH); } public boolean skipFlowVelocity() { return getFlag(SKIP_FLOW_VELOCITY); } public boolean skipSedimentYield() { return getFlag(SKIP_SEDIMENT_YIELD); } public boolean skipWaterlevels() { return getFlag(SKIP_WATERLEVELS); } public boolean skipWaterlevelDifferences() { return getFlag(SKIP_WATERLEVEL_DIFFERENCES); } public boolean skipMeasurementStations() { return getFlag(SKIP_MEASUREMENT_STATIONS); } public boolean skipSQRelation() { return getFlag(SKIP_SQ_RELATION); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :