# HG changeset patch # User Ingo Weinzierl # Date 1345730481 0 # Node ID 6603aeeda6e3721b44b9b839041eb7d033ee016b # Parent 8654e4480fc6f1bef2865621313fed119e74ec41 Shape importer: modified structure of run.sh script. flys-backend/trunk@5248 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 8654e4480fc6 -r 6603aeeda6e3 flys-backend/ChangeLog --- a/flys-backend/ChangeLog Wed Aug 22 13:04:05 2012 +0000 +++ b/flys-backend/ChangeLog Thu Aug 23 14:01:21 2012 +0000 @@ -1,3 +1,8 @@ +2012-08-22 Ingo Weinzierl + + * contrib/shpimporter/run.sh: Moved 'SKIP_XXX' variables to the top of + the script. + 2012-08-22 Ingo Weinzierl * contrib/shpimporter/axis.py: Use log methods of shpimporter and diff -r 8654e4480fc6 -r 6603aeeda6e3 flys-backend/contrib/shpimporter/run.sh --- a/flys-backend/contrib/shpimporter/run.sh Wed Aug 22 13:04:05 2012 +0000 +++ b/flys-backend/contrib/shpimporter/run.sh Thu Aug 23 14:01:21 2012 +0000 @@ -1,5 +1,6 @@ #!/bin/sh +# Required RIVER_PATH="/path/to/rivers/river" RIVER_ID=1 TARGET_SRS=31466 @@ -7,6 +8,21 @@ USER=the_user PASS=the_pass +# Optional +VERBOSE=1 +SKIP_AXIS=0 +SKIP_KMS=0 +SKIP_CROSSSECTIONS=0 +SKIP_LINES=0 +SKIP_FIXPOINTS=0 +SKIP_BUILDINGS=0 +SKIP_FLOODPLAINS=0 +SKIP_HYDR_BOUNDARIES=0 +SKIP_HWS=0 +SKIP_GAUGE_LOCATION=0 +SKIP_CATCHMENTS=0 +SKIP_UESG=0 + exec python shpimporter.py \ --directory $RIVER_PATH \ --river_id $RIVER_ID \ @@ -14,17 +30,17 @@ --host $HOST \ --user $USER \ --password $PASS \ - --verbose 1 \ - --skip_axis 0 \ - --skip_kms 0 \ - --skip_crosssections 0 \ - --skip_lines 0 \ - --skip_fixpoints 0 \ - --skip_buildings 0 \ - --skip_floodplains 0 \ - --skip_hydr_boundaries 0 \ - --skip_hws 0 \ - --skip_gauge_locations 0 \ - --skip_catchments 0 \ - --skip_uesgs 0 + --verbose $VERBOSE \ + --skip_axis $SKIP_AXIS \ + --skip_kms $SKIP_KMS \ + --skip_crosssections $SKIP_CROSSSECTIONS \ + --skip_lines $SKIP_LINES \ + --skip_fixpoints $SKIP_FIXPOINTS \ + --skip_buildings $SKIP_BUILDINGS \ + --skip_floodplains $SKIP_FLOODPLAINS \ + --skip_hydr_boundaries $SKIP_HYDR_BOUNDARIES \ + --skip_hws $SKIP_HWS \ + --skip_gauge_locations $SKIP_GAUGE_LOCATION \ + --skip_catchments $SKIP_CATCHMENTS \ + --skip_uesgs $SKIP_UESG