postgis_topology
postgis : PostGIS topology spatial types and functions
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 1501 | postgis_topology | postgis | 3.6.4 |
GIS | GPL-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | topology |
| Requires | postgis |
| See Also | pgrouting h3 qdgc q3c mobilitydb pg_polyline pg_geohash |
| Siblings | postgis postgis_raster postgis_sfcgal postgis_tiger_geocoder address_standardizer address_standardizer_data_us |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PGDG | 3.6.4 |
18 17 16 15 14 | postgis |
postgis |
| RPM | PGDG | 3.6.3 |
18 17 16 15 14 | postgis36_$v |
- |
| DEB | PGDG | 3.6.4 |
18 17 16 15 14 | postgresql-$v-postgis-3 |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| el8.aarch64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| el9.x86_64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| el9.aarch64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| el10.x86_64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| el10.aarch64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| d12.x86_64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| d12.aarch64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| d13.x86_64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| d13.aarch64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u22.x86_64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u22.aarch64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u24.x86_64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u24.aarch64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u26.x86_64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u26.aarch64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
Source
git.osgeo.org/gitea/postgis/postgis
Install
Make sure PGDG repo available:
Install this extension with pig:
Create this extension with:
Usage
PostGIS Topology: Topological data model support for PostGIS
PostGIS Topology implements the SQL/MM topology model for PostgreSQL. It represents spatial data as a graph of nodes, edges, and faces, ensuring that shared boundaries are stored only once and geometric consistency is enforced.
Setup
This creates the topology schema with management tables and functions.
Creating a Topology
A topology is a named schema with a defined SRID and tolerance for snapping:
List all topologies:
Building Topology Primitives
Adding Edges
Edges are the fundamental building blocks. Nodes are created automatically at edge endpoints.
Inspecting Primitives
TopoGeometry
A TopoGeometry is a spatial object defined by references to topology primitives rather than coordinates. This ensures shared boundaries stay consistent.