Mercurial > dive4elements > river
comparison backend/contrib/run_geo.sh @ 6805:0b2c9de5e681 double-precision
Geo-importer: use commandline-argument instead of configuration for river selection.
author | Tom Gottfried <tom.gottfried@intevation.de> |
---|---|
date | Fri, 09 Aug 2013 17:57:12 +0200 |
parents | 89f856e24d27 |
children | e68e414dceb2 |
comparison
equal
deleted
inserted
replaced
6804:1e430c0ec285 | 6805:0b2c9de5e681 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | |
3 # Required | |
4 RIVER_PATH="/vol1/projects/Geospatial/flys-3.0/testdaten/Gewaesser/Saar" | |
5 RIVER_NAME="Saar" | |
6 | 2 |
7 # Set this to your target database for Oracle | 3 # Set this to your target database for Oracle |
8 HOST=localhost | 4 HOST=localhost |
9 BACKEND_NAME="XE" | 5 BACKEND_NAME="XE" |
10 USER=flys28 | 6 USER=flys28 |
32 | 28 |
33 # Default encoding. Change here if necessary | 29 # Default encoding. Change here if necessary |
34 export LC_ALL=de_DE@euro | 30 export LC_ALL=de_DE@euro |
35 | 31 |
36 # There should be no need to change anything below this line | 32 # There should be no need to change anything below this line |
33 GEW_FILE="$1" | |
34 RIVER_NAME=$(grep "Gew.sser" "$1" | sed 's/Gew.sser: //') | |
35 | |
36 RIVER_PATH=$(grep "WSTDatei:" "$GEW_FILE" | awk '{print $2}') | |
37 RIVER_PATH=$(dirname "$RIVER_PATH")/../.. | |
38 RIVER_PATH=$(readlink -f "$RIVER_PATH") | |
37 | 39 |
38 DIR=`dirname $0` | 40 DIR=`dirname $0` |
39 DIR=`readlink -f "$DIR"` | 41 DIR=`readlink -f "$DIR"` |
40 | 42 |
41 OPTIONAL_LIBS="${DIR}"/opt | 43 OPTIONAL_LIBS="${DIR}"/opt |