comparison backend/contrib/run_geo.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_geo.sh@673f68bb19a4
children 8782ba5cb222
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 #!/bin/sh
2
3 # Required
4 RIVER_PATH="/vol1/projects/Geospatial/flys-3.0/testdaten/Gewaesser/Saar"
5 RIVER_NAME="Saar"
6
7 # Set this to your target database for Oracle
8 HOST=localhost
9 USER=flys28
10 PASS=flys28
11 # Alternatively you can provide a direct connection string:
12 # OGR_CONNECTION="PG:dbname=flys host=localhost port=5432 user=flys password=flys"
13
14 # Optional
15 VERBOSE=1
16 SKIP_AXIS=0
17 SKIP_KMS=0
18 SKIP_CROSSSECTIONS=0
19 SKIP_FIXPOINTS=0
20 SKIP_BUILDINGS=0
21 SKIP_FLOODPLAINS=0
22 SKIP_HYDR_BOUNDARIES=0
23 SKIP_HWS_LINES=0
24 SKIP_HWS_POINTS=0
25 SKIP_GAUGE_LOCATION=0
26 SKIP_CATCHMENTS=0
27 SKIP_UESG=0
28 SKIP_DGM=0
29 SKIP_JETTIES=0
30 SKIP_FLOODMARKS=0
31
32 # There should be no need to change anything below this line
33
34 DIR=`dirname $0`
35 DIR=`readlink -f "$DIR"`
36
37 OPTIONAL_LIBS="${DIR}"/opt
38 if [ -d "$OPTIONAL_LIBS" ]; then
39 export PATH="$OPTIONAL_LIBS/bin:$PATH"
40 export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib:$LD_LIBRARY_PATH"
41 export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib64:$LD_LIBRARY_PATH"
42 export PYTHONPATH="$OPTIONAL_LIBS/lib/python2.6/site-packages:$PYTHONPATH"
43 export PYTHONPATH="$OPTIONAL_LIBS/lib64/python2.6/site-packages:$PYTHONPATH"
44 export GDAL_DATA="$OPTIONAL_LIBS/share/gdal"
45 fi
46
47 exec python $DIR/shpimporter/shpimporter.py \
48 --directory $RIVER_PATH \
49 --river_name "$RIVER_NAME" \
50 --ogr_connection "$OGR_CONNECTION" \
51 --host $HOST \
52 --user $USER \
53 --password $PASS \
54 --verbose $VERBOSE \
55 --skip_axis $SKIP_AXIS \
56 --skip_kms $SKIP_KMS \
57 --skip_crosssections $SKIP_CROSSSECTIONS \
58 --skip_fixpoints $SKIP_FIXPOINTS \
59 --skip_buildings $SKIP_BUILDINGS \
60 --skip_floodplains $SKIP_FLOODPLAINS \
61 --skip_hydr_boundaries $SKIP_HYDR_BOUNDARIES \
62 --skip_gauge_locations $SKIP_GAUGE_LOCATION \
63 --skip_uesgs $SKIP_UESG \
64 --skip_hws_lines $SKIP_HWS_LINES \
65 --skip_hws_points $SKIP_HWS_POINTS \
66 --skip_dgm $SKIP_DGM \
67 --skip_jetties $SKIP_JETTIES \
68 --skip_floodmarks $SKIP_FLOODMARKS

http://dive4elements.wald.intevation.org