postgis

Install command:
brew install postgis

Adds support for geographic objects to PostgreSQL

https://postgis.net/

License: GPL-2.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/postgis.json

Formula code: postgis.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 3.7.0
head ⚡️ HEAD

Revision: 1

Depends on:

gdal 3.13.3 Geospatial Data Abstraction Library
geos 3.15.1 Geometry Engine
gmp 6.3.0 GNU multiple precision arithmetic library
icu4c@79 79.1 C/C++ and Java libraries for Unicode and globalization
json-c 0.19 JSON parser for C
libpq 19.0 Postgres C API library
libxml2 2.15.4 GNOME XML library
pcre2 10.49 Perl compatible regular expressions library with a new API
proj 9.9.0 Cartographic Projections Library
protobuf-c 1.5.2 Protocol buffers library
sfcgal 2.3.0 C++ wrapper library around CGAL
gettext 1.0 GNU internationalization (i18n) and localization (l10n) library

Depends on when building from source:

pkgconf 3.0.11 Package compiler and linker metadata toolkit
postgresql@18 18.7 Object-relational database system
postgresql@19 19.0 Object-relational database system

Uses from macOS: perl

Binaries: create_upgrade.pl, pgsql2shp, pgtopo_export, pgtopo_import, postgis, postgis_restore, profile_intersects.pl, raster2pgsql, shp2pgsql, test_estimation.pl, test_geography_estimation.pl, test_geography_joinestimation.pl, test_joinestimation.pl

GitHub Packages downloads:

Last 30 days21,144
Downloads1,135,019
Analytics install events (30 days)1,912
Downloads / install events (30 days)11.1×

Source: GitHub Packages, fetched 2026-11-25T00:58:44Z. Analytics dates: 2026-10-26 to 2026-11-25. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs1,9073,69420,162
Installs (--HEAD)51439
Installs on Request1,8993,66519,619
Installs on Request (--HEAD)51439
Build Errors3