postgis
PostGIS geometry and geography spatial types and functions
	Module:
Categories:
Overview
PGDG 1st Party Extension:  postgis : PostGIS geometry and geography spatial types and functions
Information
- Extension ID: 1500
- Extension Name: postgis
- Package Name: postgis
- Category: GIS
- License: GPLv2
- Website: https://git.osgeo.org/gitea/postgis/postgis
- Language: C
- Extra Tags: N/A
- Comment: N/A
Metadata
- Latest Version: 3.5.2
- Postgres Support: 17,16,15,14,13
- Need Load: Shared library do not need explicit loading
- Need DDL:  Need CREATE EXTENSIONDDL
- Relocatable: Can be installed into other schemas
- Trusted: Untrusted, Require Superuser to Create
- Schemas: N/A
- Requires: N/A
RPM / DEB
- RPM Repo: PGDG
- RPM Name: postgis35_$v*
- RPM Ver : 3.5.2
- RPM Deps: N/A
- DEB Repo: PGDG
- DEB Name: postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts
- DEB Ver : 3.5.2
- DEB Deps: N/A
Availability
Installation
Install postgis via the pig CLI tool:
pig ext install postgis
Install postgis via Pigsty playbook:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["postgis"]}'   # postgis35```
Install `postgis` [**RPM**](/ext/list/rpm) from [**YUM**](/ext/repo/yum) repo directly:
```bash
dnf install postgis35_17*;
dnf install postgis35_16*;
dnf install postgis35_15*;
dnf install postgis35_14*;
dnf install postgis35_13*;
Install postgis DEB from APT repo directly:
apt install postgresql-17-postgis-3 postgresql-17-postgis-3-scripts;
apt install postgresql-16-postgis-3 postgresql-16-postgis-3-scripts;
apt install postgresql-15-postgis-3 postgresql-15-postgis-3-scripts;
apt install postgresql-14-postgis-3 postgresql-14-postgis-3-scripts;
apt install postgresql-13-postgis-3 postgresql-13-postgis-3-scripts;
Create postgis extension on PostgreSQL cluster:
CREATE EXTENSION postgis;
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.