PostGIS (Spatial and Geographic Objects for PostgreSQL)
- Установка PostGIS на Centos 7/8
- Установка PostGIS на Fedora 33/34
- Установка PostGIS на Альт Сервер 9
- Установка расширения PostGIS в QHB
Данное расширение вы также можете установить для QHB. На текущий момент поддерживаются пакеты для Centos 7,8 а также для Alt Сервер 9 (поддержка ограничена).
Для установки PostGIS вам потребуется установленный QHB с инициализированным кластером БД. Для получения информации по установке и настройке QHB обратитесь в соответствующий раздел документации (см. Краткая инструкция по начальной загрузке и установке). )
Установка PostGIS на Centos 7/8
Подключите EPEL и PostgreSQL YUM repository
sudo yum install epel-release \
https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/\
pgdg-redhat-repo-latest.noarch.rpm
для Centos 7.
Или
sudo dnf install epel-release \
https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/\
pgdg-redhat-repo-latest.noarch.rpm
для Centos 8.
Также, для Centos 8 выполните:
sudo dnf config-manager --set-enabled powertools
Установите, если ранее не был установлен, репозиторий программного продукта СУБД «Квант-Гибрид» командой:
sudo rpm --import https://repo.quantom.info/qhb/keys/RPM-GPG-KEY-qhb
и далее, для CentOS 7:
sudo yum-config-manager --add-repo https://repo.quantom.info/qhb/std-1/centos/7/x86_64/qhb.repo
или для CentOS 8:
sudo dnf config-manager --add-repo https://repo.quantom.info/qhb/std-1/centos/8/x86_64/qhb.repo
Установите PostGIS доступной версии командой, например:
для CentOS 7:
sudo yum install https://repo.quantom.info/qhb/std-1/centos/7/x86_64/postgis30_12-3.0.4-1.rhel7.x86_64.rpm
или
sudo yum install https://repo.quantom.info/qhb/std-1/centos/7/x86_64/postgis31_12-3.1.4-1.rhel7.x86_64.rpm
для CentOS 8 выполните один из вариантов, в зависимости от нужной версии PostGIS:
sudo dnf install https://repo.quantom.info/qhb/std-1/centos/8/x86_64/postgis30_12-3.0.4-1.rhel8.x86_64.rpm
или
sudo dnf install https://repo.quantom.info/qhb/std-1/centos/8/x86_64/postgis31_12-3.1.4-1.rhel8.x86_64.rpm
Установка PostGIS на Fedora 33/34
Установите, если ранее не был установлен, репозиторий программного продукта СУБД «Квант-Гибрид» и репозиторий с зависимыми пакетами для PostGIS:
sudo rpm --import https://repo.quantom.info/qhb/keys/RPM-GPG-KEY-qhb
и далее, для Fedora 33:
sudo dnf config-manager --add-repo https://repo.quantom.info/qhb/std-1/fedora/33/x86_64/qhb.repo
sudo dnf install https://download.postgresql.org/pub/repos/yum/reporpms/F-33-x86_64/pgdg-fedora-repo-latest.noarch.rpm
или для Fedora 34:
sudo dnf config-manager --add-repo https://repo.quantom.info/qhb/std-1/fedora/34/x86_64/qhb.repo
sudo dnf install https://download.postgresql.org/pub/repos/yum/reporpms/F-34-x86_64/pgdg-fedora-repo-latest.noarch.rpm
Скачайте и установите PostGIS доступной версии командой, например:
для Fedora 33:
sudo dnf install https://repo.quantom.info/qhb/std-1/fedora/33/x86_64/postgis30_12-3.0.4-1.f33.x86_64.rpm
или
sudo dnf install https://repo.quantom.info/qhb/std-1/fedora/33/x86_64/postgis31_12-3.1.4-1.f33.x86_64.rpm
для Fedora 34 выполните один из вариантов, в зависимости от нужной версии PostGIS:
sudo dnf install https://repo.quantom.info/qhb/std-1/fedora/34/x86_64/postgis30_12-3.0.4-1.f34.x86_64.rpm
или
sudo dnf install https://repo.quantom.info/qhb/std-1/fedora/34/x86_64/postgis31_12-3.1.4-1.f34.x86_64.rpm
Установка PostGIS на Альт Сервер 9
Скачайте пакет PostGIS c репозитория СУБД «Квант-Гибрид» командой, например:
wget -c -r -l1 -A postgresql12-postgis-3.1.1-alt0.p9.1.x86_64.rpm -nd -np https://repo.quantom.info/qhb/std-1/centos/8/x86_64/
Установите PostGIS:
apt-get install postgresql12-postgis-3.1.1-alt0.p9.1.x86_64.rpm
Установка расширения PostGIS в QHB
Для установки расширения подключитесь к БД любимым инструментом и выполните:
create extension postgis;