postgis_hex9
libhex9 · Hex9 hierarchical geographic grids with UUID cell identifiers
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102198 | postgis_hex9 | libhex9 | 2.3.0 | GIS | Apache-2.0 | C |
| Relationships | |
|---|---|
| Requires | postgis |
Usage
Sources:
- extension/postgis_hex9/README.md
- extension/postgis_hex9/postgis_hex9–2.3.0.sql
- README.md
- extension/postgis_hex9/postgis_hex9.control
postgis_hex9 adds Hex9 geographic grids to PostGIS, with UUID cell identifiers and hierarchical spatial aggregation. It requires postgis and native libhex9. The default layout reaches layer 30; the legacy layout reaches 29.
Core Workflow
Operational Boundaries
h9_encode() and h9_decode() convert points and full addresses; h9_bin() returns aggregation keys. h9_cell() and h9_grid() produce geometry, and neighborhood functions operate on full addresses. No preload or explicit library load is needed. A bin key is not a full point address. WGS84 and spherical inputs produce different addresses, and the UUID records neither datum nor projection regime. Keep that metadata with the dataset. Version 1.x addresses must be re-derived from original geometry for 2.x; do not decode and re-encode old addresses or mix regimes. The control requires superuser installation by default; a PostgreSQL-major support matrix is not declared.