Skip to content

Commit f705708

Browse files
committed
Load raster support for Postgres 9.0
1 parent deb7d56 commit f705708

File tree

6 files changed

+66
-18
lines changed

6 files changed

+66
-18
lines changed

9.0-2.1/initdb-postgis.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ for DB in template_postgis "$POSTGRES_DB"; do
2424
EOSQL
2525
else
2626
echo "Loading PostGIS into $DB via files"
27-
psql --dbname="$DB" < postgis.sql
28-
psql --dbname="$DB" < topology.sql
29-
psql --dbname="$DB" < spatial_ref_sys.sql
27+
files='
28+
postgis
29+
postgis_comments
30+
topology
31+
topology_comments
32+
rtpostgis
33+
raster_comments
34+
'
35+
for file in $files; do
36+
psql --dbname="$DB" < "${file}.sql"
37+
done
3038
fi
3139
done

9.1-2.1/initdb-postgis.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ for DB in template_postgis "$POSTGRES_DB"; do
2424
EOSQL
2525
else
2626
echo "Loading PostGIS into $DB via files"
27-
psql --dbname="$DB" < postgis.sql
28-
psql --dbname="$DB" < topology.sql
29-
psql --dbname="$DB" < spatial_ref_sys.sql
27+
files='
28+
postgis
29+
postgis_comments
30+
topology
31+
topology_comments
32+
rtpostgis
33+
raster_comments
34+
'
35+
for file in $files; do
36+
psql --dbname="$DB" < "${file}.sql"
37+
done
3038
fi
3139
done

9.2-2.1/initdb-postgis.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ for DB in template_postgis "$POSTGRES_DB"; do
2424
EOSQL
2525
else
2626
echo "Loading PostGIS into $DB via files"
27-
psql --dbname="$DB" < postgis.sql
28-
psql --dbname="$DB" < topology.sql
29-
psql --dbname="$DB" < spatial_ref_sys.sql
27+
files='
28+
postgis
29+
postgis_comments
30+
topology
31+
topology_comments
32+
rtpostgis
33+
raster_comments
34+
'
35+
for file in $files; do
36+
psql --dbname="$DB" < "${file}.sql"
37+
done
3038
fi
3139
done

9.3-2.1/initdb-postgis.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ for DB in template_postgis "$POSTGRES_DB"; do
2424
EOSQL
2525
else
2626
echo "Loading PostGIS into $DB via files"
27-
psql --dbname="$DB" < postgis.sql
28-
psql --dbname="$DB" < topology.sql
29-
psql --dbname="$DB" < spatial_ref_sys.sql
27+
files='
28+
postgis
29+
postgis_comments
30+
topology
31+
topology_comments
32+
rtpostgis
33+
raster_comments
34+
'
35+
for file in $files; do
36+
psql --dbname="$DB" < "${file}.sql"
37+
done
3038
fi
3139
done

9.4-2.1/initdb-postgis.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ for DB in template_postgis "$POSTGRES_DB"; do
2424
EOSQL
2525
else
2626
echo "Loading PostGIS into $DB via files"
27-
psql --dbname="$DB" < postgis.sql
28-
psql --dbname="$DB" < topology.sql
29-
psql --dbname="$DB" < spatial_ref_sys.sql
27+
files='
28+
postgis
29+
postgis_comments
30+
topology
31+
topology_comments
32+
rtpostgis
33+
raster_comments
34+
'
35+
for file in $files; do
36+
psql --dbname="$DB" < "${file}.sql"
37+
done
3038
fi
3139
done

initdb-postgis.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ for DB in template_postgis "$POSTGRES_DB"; do
2424
EOSQL
2525
else
2626
echo "Loading PostGIS into $DB via files"
27-
psql --dbname="$DB" < postgis.sql
28-
psql --dbname="$DB" < topology.sql
29-
psql --dbname="$DB" < spatial_ref_sys.sql
27+
files='
28+
postgis
29+
postgis_comments
30+
topology
31+
topology_comments
32+
rtpostgis
33+
raster_comments
34+
'
35+
for file in $files; do
36+
psql --dbname="$DB" < "${file}.sql"
37+
done
3038
fi
3139
done

0 commit comments

Comments
 (0)