Feat: Add support of spatial indexes for Raster type for PostgreSQL#564
Merged
adrien-berchet merged 3 commits intogeoalchemy:masterfrom Jul 18, 2025
Merged
Conversation
26ab73f to
f258ae5
Compare
f258ae5 to
35b4502
Compare
77c7737 to
2e203de
Compare
c551c3d to
78135f5
Compare
There was a problem hiding this comment.
Pull Request Overview
This pull request adds support for spatial indexes on Raster type columns in PostgreSQL. It extends the existing spatial indexing functionality that was previously only available for Geometry and Geography types to also include Raster columns.
- Adds spatial index support for Raster type in PostgreSQL dialect
- Updates test coverage to include Raster columns with and without spatial indexes
- Extends Python version support to include Python 3.13 in testing matrix
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tox.ini | Adds Python 3.13 to the testing environment matrix |
| tests/test_functional.py | Adds test assertions for Raster type reflection and spatial index creation |
| tests/schema_fixtures.py | Adds test schema fixtures for Raster columns with and without spatial indexes |
| geoalchemy2/types/init.py | Updates Raster constructor to accept spatial index reflection parameter |
| geoalchemy2/admin/dialects/postgresql.py | Implements spatial index support for Raster type using ST_ConvexHull functional indexes |
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.
No description provided.