-
-
Notifications
You must be signed in to change notification settings - Fork 56
feat(#305): add support for PostGIS's types of GEOGRAPHY, GEOMETRY and their array variations
#421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 25 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
a9aabf3
feat(#305): add support for PostGIS's `GEOGRAPHY` and `GEOMETRY`
martin-georgiev 3801e55
excpetions skeleton
martin-georgiev 9fa3471
add geometry vo
martin-georgiev 1b9d623
add Geometry and Geography types
martin-georgiev d0fb182
add tests and minor names cleanup
martin-georgiev 90f6509
test setup improvements
martin-georgiev 2b6a808
Merge branch 'main' into postgis
martin-georgiev b1eeaf4
dimensional modifier preservation
martin-georgiev 8787b19
devenv AI improvement
martin-georgiev 94b9b46
Merge branch 'postgis' of https://github.com/martin-georgiev/postgres…
martin-georgiev 1679b8b
add support for DBAL types of arrays of Geometry and Geography
martin-georgiev 76d0b6d
extract dimensional modifier enum
martin-georgiev 8f6d4a8
cleanup
martin-georgiev 2f8b760
add multi item support
martin-georgiev 3717176
tests -> cleanup -> tests :)
martin-georgiev caab1d8
fixes
martin-georgiev 9ee1f11
complete set of test scenarios (but some cleanup expected):)
martin-georgiev 63e1350
final touches
martin-georgiev e69e412
increase test coverage
martin-georgiev 10fcc61
no message
martin-georgiev c1d7a3d
docs
martin-georgiev f8e91a9
docs
martin-georgiev ef344b1
Merge branch 'postgis' of https://github.com/martin-georgiev/postgres…
martin-georgiev 3c87171
no message
martin-georgiev a442120
AI docs
martin-georgiev d1b5e36
no message
martin-georgiev d873c4b
Merge branch 'main' into postgis
martin-georgiev 382c20a
no message
martin-georgiev 687cb6a
Merge branch 'main' into postgis
martin-georgiev 002cbd3
Update docs/GEOMETRY-ARRAYS.md
martin-georgiev 20e8abe
no message
martin-georgiev 94dc439
Merge branch 'main' into postgis
martin-georgiev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Create the extension before querying PostGIS_Version()
On some images/databases, PostGIS is installed but not enabled in the target DB. Explicitly creating the extension avoids flakiness.
Apply this tweak to the verification step:
Minor: the earlier echo lines use "\n", which many shells won’t interpret without -e. Consider printf for consistent newlines.
🏁 Script executed:
Length of output: 631
Enable PostGIS extension before querying its version
The workflow currently lists available extensions but never creates/enables PostGIS in the test database, which can lead to flakiness on images where PostGIS isn’t auto-enabled.
• File: .github/workflows/integration-tests.yml
• Around lines 108–112
Apply this diff:
- name: Verify available PostGIS extensions run: | echo "Available extensions:" PGPASSWORD=postgres psql -h localhost -U postgres -d postgres_doctrine_test -c "SELECT * FROM pg_available_extensions;" + echo "Enabling PostGIS extension (idempotent):" + PGPASSWORD=postgres psql -h localhost -U postgres -d postgres_doctrine_test -c "CREATE EXTENSION IF NOT EXISTS postgis;" - name: Verify PostGIS installation run: | - echo "\nVerifying PostGIS installation:" - PGPASSWORD=postgres psql -h localhost -U postgres -d postgres_doctrine_test -c "SELECT PostGIS_Version();" + # Use printf or echo -e for consistent newlines + printf "\nVerifying PostGIS installation:\n" + PGPASSWORD=postgres psql -h localhost -U postgres -d postgres_doctrine_test -c "SELECT PostGIS_Version();" + # Optional sanity check for a PostGIS function + PGPASSWORD=postgres psql -h localhost -U postgres -d postgres_doctrine_test -c "SELECT COUNT(*) FROM pg_proc WHERE proname='st_astext';"📝 Committable suggestion
🤖 Prompt for AI Agents