comparison backend/contrib/run_hydr_morph.sh @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-backend/contrib/run_hydr_morph.sh@b9ae676a9afe
children 14b5674e57a4
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 #!/bin/bash
2
3 ######################### CONFIG OPTIONS ############################
4 INFO_GEW="/vol1/projects/Geospatial/flys-3.0/testdaten/saar.gew"
5 BACKEND_USER="flys28"
6 BACKEND_PASS="flys28"
7 BACKEND_HOST="czech-republic.atlas.intevation.de"
8 BACKEND_PORT="1521"
9 BACKEND_NAME="XE"
10 LOG4J_CONFIG="conf/log4j.properties"
11 JAR="hydr_morph/importer.jar"
12 #####################################################################
13
14
15 ########################## Oracle Settings ##########################
16 BACKEND_DB_PREFIX="jdbc:oracle:thin:@"
17 BACKEND_DB_DRIVER="oracle.jdbc.OracleDriver"
18 BACKEND_DB_DIALECT="org.hibernate.dialect.OracleDialect"
19 BACKEND_URL=$BACKEND_DB_PREFIX//$BACKEND_HOST:$BACKEND_PORT/$BACKEND_NAME
20 #####################################################################
21
22
23 ######################## Custom Importer Settings ###################
24 IMPORTER_DRY_RUN=false
25 IMPORTER_MAINVALUE_TYPES=QWTD
26 IMPORTER_ANNOTATION_TYPES="conf/annotation-types.xml"
27
28 IMPORTER_SKIP_ANNOTATIONS=false
29 IMPORTER_SKIP_BWASTR=false
30 IMPORTER_SKIP_DA50S=false
31 IMPORTER_SKIP_DA66S=false
32 IMPORTER_SKIP_EXTRA_WST=false
33 IMPORTER_SKIP_FIXATIONS=false
34 IMPORTER_SKIP_FLOOD_WATER=false
35 IMPORTER_SKIP_FLOOD_PROTECTION=false
36 IMPORTER_SKIP_GAUGES=false
37 IMPORTER_SKIP_HISTORICAL_DISCHARGE_GAUGES=false
38 IMPORTER_SKIP_HYKS=false
39 IMPORTER_SKIP_OFFICIAL_LINES=false
40 IMPORTER_SKIP_PRFS=false
41 IMPORTER_SKIP_W80S=false
42 IMPORTER_SKIP_W80_CSVS=false
43 IMPORTER_SKIP_WST=false
44
45 IMPORTER_SKIP_BED_HEIGHT_SINGLE=false
46 IMPORTER_SKIP_BED_HEIGHT_EPOCH=false
47 IMPORTER_SKIP_FLOW_VELOCITY=false
48 IMPORTER_SKIP_MORPHOLOGICAL_WIDTH=false
49 IMPORTER_SKIP_SEDIMENT_DENSITY=false
50 IMPORTER_SKIP_SEDIMENT_YIELD=false
51 IMPORTER_SKIP_SQ_RELATION=false
52 IMPORTER_SKIP_WATERLEVELS=false
53 IMPORTER_SKIP_WATERLEVEL_DIFFERENCES=false
54 #####################################################################
55
56 #MIN_MEMORY="8192m"
57 MIN_MEMORY="1024m"
58
59
60 ######################### Run Importer ##############################
61 OPTIONAL_LIBS="${DIR}"/../opt
62 if [ -d "$OPTIONAL_LIBS" ]; then
63 export PATH="$OPTIONAL_LIBS/bin:$PATH"
64 export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib:$LD_LIBRARY_PATH"
65 export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib64:$LD_LIBRARY_PATH"
66 fi
67
68 export LC_ALL=de_DE@euro # Workaround encoding problem
69
70 exec java -jar \
71 -Xmx$MIN_MEMORY \
72 -server \
73 -Dlog4j.configuration=file://`readlink -f $LOG4J_CONFIG` \
74 -Dflys.backend.importer.infogew.file=$INFO_GEW \
75 -Dflys.backend.main.value.types=$IMPORTER_MAINVALUE_TYPES \
76 -Dflys.backend.importer.annotation.types=$IMPORTER_ANNOTATION_TYPES \
77 -Dflys.backend.importer.dry.run=$IMPORTER_DRY_RUN \
78 -Dflys.backend.importer.skip.annotations=$IMPORTER_SKIP_ANNOTATIONS \
79 -Dflys.backend.importer.skip.bed.height.single=$IMPORTER_SKIP_BED_HEIGHT_SINGLE \
80 -Dflys.backend.importer.skip.bed.height.epoch=$IMPORTER_SKIP_BED_HEIGHT_EPOCH \
81 -Dflys.backend.importer.skip.bwastr=$IMPORTER_SKIP_BWASTR \
82 -Dflys.backend.importer.skip.da50s=$IMPORTER_SKIP_DA50S \
83 -Dflys.backend.importer.skip.da66s=$IMPORTER_SKIP_DA66S \
84 -Dflys.backend.importer.skip.extra.wsts=$IMPORTER_SKIP_EXTRA_WST \
85 -Dflys.backend.importer.skip.fixations=$IMPORTER_SKIP_FIXATIONS \
86 -Dflys.backend.importer.skip.flood.water=$IMPORTER_SKIP_FLOOD_WATER \
87 -Dflys.backend.importer.skip.flood.protection=$IMPORTER_SKIP_FLOOD_PROTECTION \
88 -Dflys.backend.importer.skip.flow.velocity=$IMPORTER_SKIP_FLOW_VELOCITY \
89 -Dflys.backend.importer.skip.gauges=$IMPORTER_SKIP_GAUGES \
90 -Dflys.backend.importer.skip.historical.discharge.tables=$IMPORTER_SKIP_HISTORICAL_DISCHARGE_GAUGES \
91 -Dflys.backend.importer.skip.hyks=$IMPORTER_SKIP_HYKS \
92 -Dflys.backend.importer.skip.morphological.width=$IMPORTER_SKIP_MORPHOLOGICAL_WIDTH \
93 -Dflys.backend.importer.skip.official.lines=$IMPORTER_SKIP_OFFICIAL_LINES \
94 -Dflys.backend.importer.skip.prfs=$IMPORTER_SKIP_PRFS \
95 -Dflys.backend.importer.skip.sediment.density=$IMPORTER_SKIP_SEDIMENT_DENSITY \
96 -Dflys.backend.importer.skip.sediment.yield=$IMPORTER_SKIP_SEDIMENT_YIELD \
97 -Dflys.backend.importer.skip.sq.relation=$IMPORTER_SKIP_SQ_RELATION \
98 -Dflys.backend.importer.skip.w80s=$IMPORTER_SKIP_W80S \
99 -Dflys.backend.importer.skip.w80.csvs=$IMPORTER_SKIP_W80_CSVS \
100 -Dflys.backend.importer.skip.waterlevels=$IMPORTER_SKIP_WATERLEVELS \
101 -Dflys.backend.importer.skip.waterlevel.differences=$IMPORTER_SKIP_WATERLEVEL_DIFFERENCES \
102 -Dflys.backend.importer.skip.wst=$IMPORTER_SKIP_WST \
103 -Dflys.backend.user=$BACKEND_USER \
104 -Dflys.backend.password=$BACKEND_PASS \
105 -Dflys.backend.url=$BACKEND_URL \
106 -Dflys.backend.driver=$BACKEND_DB_DRIVER \
107 -Dflys.backend.dialect=$BACKEND_DB_DIALECT \
108 $JAR

http://dive4elements.wald.intevation.org