forked from jibeproject/networkMelbourne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexportBoundaries.sh
93 lines (75 loc) · 1.38 KB
/
exportBoundaries.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env bash
echo $BASH_VERSION
# change to the directory this script is located in
cd "$(dirname "$0")"
DB_NAME="jibe"
ogr2ogr \
-nln region \
-unsetFid \
-update \
-overwrite \
-f SQLite \
-dsco SPATIALITE=yes \
"./data/region.sqlite" \
PG:"dbname=${DB_NAME} user=postgres" \
region
ogr2ogr \
-nln region_buffer \
-unsetFid \
-update \
-overwrite \
-f SQLite \
-dsco SPATIALITE=yes \
"./data/region_buffer.sqlite" \
PG:"dbname=${DB_NAME} user=postgres" \
region_buffer
ogr2ogr \
-nln mb \
-unsetFid \
-update \
-overwrite \
-f SQLite \
-dsco SPATIALITE=yes \
"./data/mb.sqlite" \
PG:"dbname=${DB_NAME} user=postgres" \
mb
ogr2ogr \
-nln sa1 \
-unsetFid \
-update \
-overwrite \
-f SQLite \
-dsco SPATIALITE=yes \
"./data/sa1.sqlite" \
PG:"dbname=${DB_NAME} user=postgres" \
sa1
ogr2ogr \
-nln sa2 \
-unsetFid \
-update \
-overwrite \
-f SQLite \
-dsco SPATIALITE=yes \
"./data/sa2.sqlite" \
PG:"dbname=${DB_NAME} user=postgres" \
sa2
ogr2ogr \
-nln sa3 \
-unsetFid \
-update \
-overwrite \
-f SQLite \
-dsco SPATIALITE=yes \
"./data/sa3.sqlite" \
PG:"dbname=${DB_NAME} user=postgres" \
sa3
ogr2ogr \
-nln sos \
-unsetFid \
-update \
-overwrite \
-f SQLite \
-dsco SPATIALITE=yes \
"./data/urban_regions.sqlite" \
PG:"dbname=${DB_NAME} user=postgres" \
sos