select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Extensions / Geospatial

pg_s2

Adds an S2 CellID type, hierarchy and covering functions, distance helpers, casts, operators, and a B-tree operator class.

pgext.cloud · Source code · Documentation · License text · Control file

Overview

Packagepg_s2
Version0.0.6
PostgreSQL versions14 · 15 · 16 · 17
RepositoryUnspecified
Extension typeStandard
Requires CREATE EXTENSIONYes
Requires preloadNo
TrustedNo
RelocatableNo
Stars0
Latest commit2026-01-04
Latest release2026-01-03
Catalogue updated2026-08-30

Related extensions

See also

s2PL/Python functions for converting latitude/longitude to S2 cell IDs and tokens and navigating the S2 cell hierarchy
pgs2Postgres extension for S2 spherical geometry
qdgcEncode, decode, navigate, and fill Extended Quarter Degree Grid Cell codes in pure SQL.
lostgisLostGIS spatial helper functions and types
ast_postgisAdvanced spatial data types and spatial integrity constraints for PostGIS.
parray_ginGIN index operator class and partial-match operators for text arrays
pg_geohashHandle geohash based functionality for spatial coordinates
rostgisExperimental PostGIS-compatible spatial extension written in Rust.
vasavgeomVague geometry handler - VASA
historical_geocodingSQL toolkit for geocoding historical addresses by combining textual, temporal, and spatial evidence.