comparison flys-backend/contrib/run_geo.sh @ 5128:a020100ee6a1

SCHEME CHANGE: Merge branch dami into default. A summary on the scheme changes: HWS and Lines tables are dropped and will be replaced by HWS_Lines and HWS_Points. The catchment table removed and will be replaced by a WMS Service. Hydr_boundaries has an added reference to boundary_kind sectie_kind and sobek_kind objects. Dem has a new column srid.
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 28 Feb 2013 11:48:17 +0100
parents 90b9b80ffbbf
children d086ce6c13d3
comparison
equal deleted inserted replaced
5126:e37b25628dd4 5128:a020100ee6a1
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Required 3 # Required
4 RIVER_PATH="/vol1/projects/Geospatial/flys-3.0/testdaten/Gewaesser/Saar" 4 RIVER_PATH="/vol1/projects/Geospatial/flys-3.0/testdaten/Gewaesser/Saar"
5 RIVER_ID=1 5 RIVER_NAME="Saar"
6 TARGET_SRS=31467
7 6
8 # Set this to your target database for Oracle 7 # Set this to your target database for Oracle
9 HOST=localhost 8 HOST=localhost
10 USER=flys28 9 USER=flys28
11 PASS=flys28 10 PASS=flys28
15 # Optional 14 # Optional
16 VERBOSE=1 15 VERBOSE=1
17 SKIP_AXIS=0 16 SKIP_AXIS=0
18 SKIP_KMS=0 17 SKIP_KMS=0
19 SKIP_CROSSSECTIONS=0 18 SKIP_CROSSSECTIONS=0
20 SKIP_LINES=0
21 SKIP_FIXPOINTS=0 19 SKIP_FIXPOINTS=0
22 SKIP_BUILDINGS=0 20 SKIP_BUILDINGS=0
23 SKIP_FLOODPLAINS=0 21 SKIP_FLOODPLAINS=0
24 SKIP_HYDR_BOUNDARIES=0 22 SKIP_HYDR_BOUNDARIES=0
25 SKIP_HWS_LINES=0 23 SKIP_HWS_LINES=0
26 SKIP_HWS_POINTS=0 24 SKIP_HWS_POINTS=0
27 SKIP_GAUGE_LOCATION=0 25 SKIP_GAUGE_LOCATION=0
28 SKIP_CATCHMENTS=0 26 SKIP_CATCHMENTS=0
29 SKIP_UESG=0 27 SKIP_UESG=0
28 SKIP_DGM=0
30 29
30 # There should be no need to change anything below this line
31 31
32 DIR=`dirname $0` 32 DIR=`dirname $0`
33 DIR=`readlink -f "$DIR"` 33 DIR=`readlink -f "$DIR"`
34 34
35 OPTIONAL_LIBS="${DIR}"/opt
36 if [ -d "$OPTIONAL_LIBS" ]; then
37 export PATH="$OPTIONAL_LIBS/bin:$PATH"
38 export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib:$LD_LIBRARY_PATH"
39 export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib64:$LD_LIBRARY_PATH"
40 export PYTHONPATH="$OPTIONAL_LIBS/lib/python2.6/site-packages:$PYTHONPATH"
41 export PYTHONPATH="$OPTIONAL_LIBS/lib64/python2.6/site-packages:$PYTHONPATH"
42 export GDAL_DATA="$OPTIONAL_LIBS/share/gdal"
43 fi
44
35 exec python $DIR/shpimporter/shpimporter.py \ 45 exec python $DIR/shpimporter/shpimporter.py \
36 --directory $RIVER_PATH \ 46 --directory $RIVER_PATH \
37 --river_id $RIVER_ID \ 47 --river_name $RIVER_NAME \
38 --target_srs $TARGET_SRS \
39 --ogr_connection "$OGR_CONNECTION" \ 48 --ogr_connection "$OGR_CONNECTION" \
40 --host $HOST \ 49 --host $HOST \
41 --user $USER \ 50 --user $USER \
42 --password $PASS \ 51 --password $PASS \
43 --verbose $VERBOSE \ 52 --verbose $VERBOSE \
44 --skip_axis $SKIP_AXIS \ 53 --skip_axis $SKIP_AXIS \
45 --skip_kms $SKIP_KMS \ 54 --skip_kms $SKIP_KMS \
46 --skip_crosssections $SKIP_CROSSSECTIONS \ 55 --skip_crosssections $SKIP_CROSSSECTIONS \
47 --skip_lines $SKIP_LINES \
48 --skip_fixpoints $SKIP_FIXPOINTS \ 56 --skip_fixpoints $SKIP_FIXPOINTS \
49 --skip_buildings $SKIP_BUILDINGS \ 57 --skip_buildings $SKIP_BUILDINGS \
50 --skip_floodplains $SKIP_FLOODPLAINS \ 58 --skip_floodplains $SKIP_FLOODPLAINS \
51 --skip_hydr_boundaries $SKIP_HYDR_BOUNDARIES \ 59 --skip_hydr_boundaries $SKIP_HYDR_BOUNDARIES \
52 --skip_gauge_locations $SKIP_GAUGE_LOCATION \ 60 --skip_gauge_locations $SKIP_GAUGE_LOCATION \
53 --skip_catchments $SKIP_CATCHMENTS \
54 --skip_uesgs $SKIP_UESG \ 61 --skip_uesgs $SKIP_UESG \
55 --skip_hws_lines $SKIP_HWS_LINES \ 62 --skip_hws_lines $SKIP_HWS_LINES \
56 --skip_hws_points $SKIP_HWS_POINTS 63 --skip_hws_points $SKIP_HWS_POINTS \
64 --skip_dgm $SKIP_DGM

http://dive4elements.wald.intevation.org