OAM: create extension sfcgal for ST_approximateMedialAxis function

This commit is contained in:
nobohan 2023-07-04 12:48:43 +02:00
parent d8251d5dd7
commit 4895e86c55

2
run.sh
View File

@ -49,7 +49,6 @@ set -x
if [ "$1" == "terminal" ]; then if [ "$1" == "terminal" ]; then
compileStyle
bash bash
fi fi
@ -72,6 +71,7 @@ if [ "$1" == "import" ]; then
sudo -u postgres createdb -E UTF8 -O renderer gis sudo -u postgres createdb -E UTF8 -O renderer gis
sudo -u postgres psql -d gis -c "CREATE EXTENSION postgis;" sudo -u postgres psql -d gis -c "CREATE EXTENSION postgis;"
sudo -u postgres psql -d gis -c "CREATE EXTENSION hstore;" sudo -u postgres psql -d gis -c "CREATE EXTENSION hstore;"
sudo -u postgres psql -d gis -c "CREATE EXTENSION postgis_sfcgal;"
sudo -u postgres psql -d gis -c "ALTER TABLE geometry_columns OWNER TO renderer;" sudo -u postgres psql -d gis -c "ALTER TABLE geometry_columns OWNER TO renderer;"
sudo -u postgres psql -d gis -c "ALTER TABLE spatial_ref_sys OWNER TO renderer;" sudo -u postgres psql -d gis -c "ALTER TABLE spatial_ref_sys OWNER TO renderer;"
setPostgresPassword setPostgresPassword