Mercurial > dive4elements > river
comparison flys-backend/contrib/shpimporter/run.sh @ 3656:6603aeeda6e3
Shape importer: modified structure of run.sh script.
flys-backend/trunk@5248 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 23 Aug 2012 14:01:21 +0000 |
parents | 59ca5dab2782 |
children | 94ce92e73603 |
comparison
equal
deleted
inserted
replaced
3655:8654e4480fc6 | 3656:6603aeeda6e3 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Required | |
3 RIVER_PATH="/path/to/rivers/river" | 4 RIVER_PATH="/path/to/rivers/river" |
4 RIVER_ID=1 | 5 RIVER_ID=1 |
5 TARGET_SRS=31466 | 6 TARGET_SRS=31466 |
6 HOST=localhost | 7 HOST=localhost |
7 USER=the_user | 8 USER=the_user |
8 PASS=the_pass | 9 PASS=the_pass |
10 | |
11 # Optional | |
12 VERBOSE=1 | |
13 SKIP_AXIS=0 | |
14 SKIP_KMS=0 | |
15 SKIP_CROSSSECTIONS=0 | |
16 SKIP_LINES=0 | |
17 SKIP_FIXPOINTS=0 | |
18 SKIP_BUILDINGS=0 | |
19 SKIP_FLOODPLAINS=0 | |
20 SKIP_HYDR_BOUNDARIES=0 | |
21 SKIP_HWS=0 | |
22 SKIP_GAUGE_LOCATION=0 | |
23 SKIP_CATCHMENTS=0 | |
24 SKIP_UESG=0 | |
9 | 25 |
10 exec python shpimporter.py \ | 26 exec python shpimporter.py \ |
11 --directory $RIVER_PATH \ | 27 --directory $RIVER_PATH \ |
12 --river_id $RIVER_ID \ | 28 --river_id $RIVER_ID \ |
13 --target_srs $TARGET_SRS \ | 29 --target_srs $TARGET_SRS \ |
14 --host $HOST \ | 30 --host $HOST \ |
15 --user $USER \ | 31 --user $USER \ |
16 --password $PASS \ | 32 --password $PASS \ |
17 --verbose 1 \ | 33 --verbose $VERBOSE \ |
18 --skip_axis 0 \ | 34 --skip_axis $SKIP_AXIS \ |
19 --skip_kms 0 \ | 35 --skip_kms $SKIP_KMS \ |
20 --skip_crosssections 0 \ | 36 --skip_crosssections $SKIP_CROSSSECTIONS \ |
21 --skip_lines 0 \ | 37 --skip_lines $SKIP_LINES \ |
22 --skip_fixpoints 0 \ | 38 --skip_fixpoints $SKIP_FIXPOINTS \ |
23 --skip_buildings 0 \ | 39 --skip_buildings $SKIP_BUILDINGS \ |
24 --skip_floodplains 0 \ | 40 --skip_floodplains $SKIP_FLOODPLAINS \ |
25 --skip_hydr_boundaries 0 \ | 41 --skip_hydr_boundaries $SKIP_HYDR_BOUNDARIES \ |
26 --skip_hws 0 \ | 42 --skip_hws $SKIP_HWS \ |
27 --skip_gauge_locations 0 \ | 43 --skip_gauge_locations $SKIP_GAUGE_LOCATION \ |
28 --skip_catchments 0 \ | 44 --skip_catchments $SKIP_CATCHMENTS \ |
29 --skip_uesgs 0 | 45 --skip_uesgs $SKIP_UESG |
30 | 46 |