comparison flys-backend/contrib/run_hydr_morph.sh @ 3683:4298ef9bd4a6

Added run scripts for both importers. flys-backend/trunk@5315 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 30 Aug 2012 11:06:12 +0000
parents
children ac93f397018d
comparison
equal deleted inserted replaced
3682:16498764fca5 3683:4298ef9bd4a6
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 #####################################################################
12
13
14 ########################## Oracle Settings ##########################
15 BACKEND_DB_PREFIX="jdbc:oracle:thin:@"
16 BACKEND_DB_DRIVER="oracle.jdbc.OracleDriver"
17 BACKEND_DB_DIALECT="org.hibernate.dialect.OracleDialect"
18 BACKEND_URL=$BACKEND_DB_PREFIX//$BACKEND_HOST:$BACKEND_PORT/$BACKEND_NAME
19 #####################################################################
20
21
22 ######################## Custom Importer Settings ###################
23 IMPORTER_DRY_RUN=false
24 IMPORTER_MAINVALUE_TYPES=QWTD
25 IMPORTER_ANNOTATION_TYPES="conf/annotation-types.xml"
26
27 IMPORTER_SKIP_GAUGES=false
28 IMPORTER_SKIP_ANNOTATIONS=false
29 IMPORTER_SKIP_WST=false
30 IMPORTER_SKIP_PRFS=false
31 IMPORTER_SKIP_HYKS=false
32 IMPORTER_SKIP_EXTRA_WST=false
33 IMPORTER_SKIP_FIXATIONS=false
34 IMPORTER_SKIP_OFFICIAL_LINES=false
35 IMPORTER_SKIP_FLOOD_WATER=false
36 IMPORTER_SKIP_FLOOD_PROTECTION=false
37
38 IMPORTER_SKIP_BED_HEIGHT_SINGLE=false
39 IMPORTER_SKIP_BED_HEIGHT_EPOCH=false
40 IMPORTER_SKIP_SEDIMENT_DENSITY=false
41 IMPORTER_SKIP_MORPHOLOGICAL_WIDTH=false
42 IMPORTER_SKIP_FLOW_VELOCITY=false
43 IMPORTER_SKIP_SEDIMENT_YIELD=false
44 IMPORTER_SKIP_WATERLEVELS=false
45 IMPORTER_SKIP_WATERLEVEL_DIFFERENCES=false
46 IMPORTER_SKIP_SQ_RELATION=false
47 #####################################################################
48
49 #MIN_MEMORY="8192m"
50 MIN_MEMORY="1024m"
51
52
53 ########################## Importer Settings ########################
54 APP="de.intevation.flys.importer.Importer"
55 DIR=`dirname $0`
56 DIR=`readlink -f "$DIR/.."`
57 #####################################################################
58
59
60 ########################## Collect required libraries ###############
61 CLASSPATH=
62 for l in `find "$DIR/lib" -name \*.jar -print`; do
63 CLASSPATH=$CLASSPATH:$l
64 done
65
66 export CLASSPATH
67 #####################################################################
68
69
70 ######################### Run Importer ##############################
71 exec java \
72 -Xmx$MIN_MEMORY \
73 -server \
74 -Dlog4j.configuration=file://`readlink -f $LOG4J_CONFIG` \
75 -Dflys.backend.importer.infogew.file=$INFO_GEW \
76 -Dflys.backend.main.value.types=$IMPORTER_MAINVALUE_TYPES \
77 -Dflys.backend.importer.annotation.types=$IMPORTER_ANNOTATION_TYPES \
78 -Dflys.backend.importer.dry.run=$IMPORTER_DRY_RUN \
79 -Dflys.backend.importer.skip.gauges=$IMPORTER_SKIP_GAUGES \
80 -Dflys.backend.importer.skip.annotations=$IMPORTER_SKIP_ANNOTATIONS \
81 -Dflys.backend.importer.skip.prfs=$IMPORTER_SKIP_PRFS \
82 -Dflys.backend.importer.skip.hyks=$IMPORTER_SKIP_HYKS \
83 -Dflys.backend.importer.skip.wst=$IMPORTER_SKIP_WST \
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.official.lines=$IMPORTER_SKIP_OFFICIAL_LINES \
87 -Dflys.backend.importer.skip.flood.water=$IMPORTER_SKIP_FLOOD_WATER \
88 -Dflys.backend.importer.skip.flood.protection=$IMPORTER_SKIP_FLOOD_PROTECTION \
89 -Dflys.backend.importer.skip.bed.height.single=$IMPORTER_SKIP_BED_HEIGHT_SINGLE \
90 -Dflys.backend.importer.skip.bed.height.epoch=$IMPORTER_SKIP_BED_HEIGHT_EPOCH \
91 -Dflys.backend.importer.skip.sediment.density=$IMPORTER_SKIP_SEDIMENT_DENSITY \
92 -Dflys.backend.importer.skip.morphological.width=$IMPORTER_SKIP_MORPHOLOGICAL_WIDTH \
93 -Dflys.backend.importer.skip.flow.velocity=$IMPORTER_SKIP_FLOW_VELOCITY \
94 -Dflys.backend.importer.skip.sediment.yield=$IMPORTER_SKIP_SEDIMENT_YIELD \
95 -Dflys.backend.importer.skip.waterlevels=$IMPORTER_SKIP_WATERLEVELS \
96 -Dflys.backend.importer.skip.waterlevel.differences=$IMPORTER_SKIP_WATERLEVEL_DIFFERENCES \
97 -Dflys.backend.importer.skip.sq.relation=$IMPORTER_SKIP_SQ_RELATION \
98 -Dflys.backend.user=$BACKEND_USER \
99 -Dflys.backend.password=$BACKEND_PASS \
100 -Dflys.backend.url=$BACKEND_URL \
101 -Dflys.backend.driver=$BACKEND_DB_DRIVER \
102 -Dflys.backend.dialect=$BACKEND_DB_DIALECT \
103 $APP

http://dive4elements.wald.intevation.org