{%extends "base.html" %} {%block title%}Extension howto docs{%endblock%} {%block maincontent%}
PostGIS adds support for geographic objects to the PostgreSQL object-relational database. In effect, PostGIS "spatially enables" the PostgreSQL server, allowing it to be used as a backend spatial database for geographic information systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS follows the OpenGIS "Simple Features Specification for SQL" and has been certified as compliant with the "Types and Functions" profile.
PostGIS uses two digit version numbers like 3.4, 3.5, etc. Traditionally there is a new major
release every year along with (but not strictly tied to) the PostgreSQL major release.
The PostgreSQL RPM repository uses both PostGIS and PostgreSQL version numbers in the RPM packages.
For example PostGIS 3.5 for PostgreSQL 17 is named as postgis35_17.
Similarly PostGIS 3.2 for PostgreSQL 15 is named as postgis32_14.
PostGIS provides the following subpackages:
Install PGDG repository from: https://zypp.postgresql.org/repopackages/
Enable two repositories for dependencies:
zypper addrepo https://download.opensuse.org/repositories/science/15.6/science.repo
SUSEConnect -p PackageHub/15.6/x86_64
OS | Command |
---|---|
SuSE Enterprise Linux 15 | zypper install postgis35_17 (or change the version as described above)
zypper install postgis35_17-gui (or change "gui" for any subpackage described above) |
Connect to the database that you want to create the extension as superuser and run:
CREATE EXTENSION postgis;
# Main extensionCREATE EXTENSION postgis_raster;
# PostGIS raster types and functionsCREATE EXTENSION postgis_sfcgal;
# PostGIS SFCGAL functionsCREATE EXTENSION postgis_tiger_geocoder CASCADE;
# PostGIS tiger geocoder and reverse geocoder. CASCADE is needed for the fuzzystrmatch extensionCREATE EXTENSION postgis_tiger_topology;
# PostGIS topology spatial types and functionsPostGIS version | PostgreSQL version(s) | OS version | Arch | Status |
---|---|---|---|---|
3.5 | 17,16,15,14,13 | SuSE Enterprise Linux 15 - x86_64 | x86_64 | Available |
3.4 | 17,16,15,14,13 | SuSE Enterprise Linux 15 - x86_64 | x86_64 | Available |
3.3 | 17,16,15,14,13 | SuSE Enterprise Linux 15 - x86_64 | x86_64 | Available |
3.2 | 15,14,13 | SuSE Enterprise Linux 15 - x86_64 | x86_64 | Available |
3.1 | 14,13 | SuSE Enterprise Linux 15 - x86_64 | x86_64 | Available |
3.0 | 13 | SuSE Enterprise Linux 15 - x86_64 | x86_64 | Available |