diff flys-backend/contrib/shpimporter/run.sh @ 3654:59ca5dab2782

Shape importer: use python's OptionParse to read user specific configuration from command line. flys-backend/trunk@5231 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 22 Aug 2012 11:55:55 +0000
parents
children 6603aeeda6e3
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-backend/contrib/shpimporter/run.sh	Wed Aug 22 11:55:55 2012 +0000
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+RIVER_PATH="/path/to/rivers/river"
+RIVER_ID=1
+TARGET_SRS=31466
+HOST=localhost
+USER=the_user
+PASS=the_pass
+
+exec python shpimporter.py \
+    --directory $RIVER_PATH \
+    --river_id $RIVER_ID \
+    --target_srs $TARGET_SRS \
+    --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
+

http://dive4elements.wald.intevation.org