feat(extensions): add PostGIS raster and GDAL support - #123
Draft
f0rr0 wants to merge 2 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
postgis_rasterextensionWhy
The existing PostGIS product exposed the core geometry extension but did not ship the raster module or its GDAL dependency closure. That left raster APIs unavailable and made PostGIS support incomplete across the published runtime and SDK surfaces.
This follows the build shape demonstrated by electric-sql/postgres-pglite@956441b while preserving Oliphaunt's explicit source-pin, carrier, legal, and qualification contracts.
Implementation
postgis-3andpostgis_raster-3modulesGDAL_DATAfiles in every relevant carrierExtension::Postgisowns both core and raster artifactsThe smoke test creates
postgisandpostgis_raster, enables GDAL drivers, verifies GTiff read/write support, round-trips a 2x2 raster throughST_AsGDALRaster/ST_FromGDALRaster, and checks its pixel value and SRID.Scope
This completes the published PostGIS product as core plus raster/GDAL. Separately installable companion products—PostGIS topology, SFCGAL, Tiger Geocoder, address standardizer, and protobuf support—remain intentionally disabled, consistent with the reference build. Optional GDAL plugins outside the declared GTiff/VRT and GeoJSON/Shapefile set are also not introduced.
Validation
tools/release/release-check.mjs: 1,588 passed, 15 host-specific skipped, 0 failedcargo test -p xtask --locked: 41 passedcargo fmt --all -- --check: passedThe skipped checks require macOS/PowerShell-specific host facilities and remain covered by their hosted CI jobs.