-
Notifications
You must be signed in to change notification settings - Fork 112
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
Specific process for geometries with Z or M coordinate with SpatiaLite dialect #506
Specific process for geometries with Z or M coordinate with SpatiaLite dialect #506
Conversation
Though most of the dialects support geom_type ending with Z in SQL queries, it seems not working with SpatiaLite. Hence replacing Z with a blank. Added a test to cover this behaviour.
for more information, see https://pre-commit.ci
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.
Thank you very much for this proposal @sdp5 !
I'm going to setup a more general test to be sure we cover all cases and then we'll see how bind_processor_process()
can handle all these cases with your fix.
Agree, getting your point @adrien-berchet and thank you for setting up the tests. 👍🏻 Allow me some more time testing, will update the PR shortly. |
I guess support for 'M' is coming in shapely.
Perhaps 'M' and 'ZM' support could be put on the TODO-list? Plus with 'ZM' ... shapely returns |
Hmmm ok |
8590a9e
to
e584682
Compare
I'm not able to reproduce the CI failure locally, even in the test Docker container 🤔 |
ran some tests quickly with
we can fix that by adding following in
Can we use this image in |
Add some formatting for postgresql dialect, MULTIPOINT geom_type.
for more information, see https://pre-commit.ci
b5b0104
to
c0a5cbb
Compare
@adrien-berchet for docs, should we make it a part of |
I'm surprised they changed this behavior, that's quite annoying.
Yeah, let's go for a newer version if it does not break anything (except the Thanks for this! |
Yeah that looks relevant. |
For the CI I see that you need to add |
Looks good this time 🥳 |
🎉 thanks, please go ahead merging @adrien-berchet ! |
Co-authored-by: Adrien Berchet <adrien.berchet@gmail.com>
Co-authored-by: Adrien Berchet <adrien.berchet@gmail.com>
Co-authored-by: Adrien Berchet <adrien.berchet@gmail.com>
63a64a7
to
32f3886
Compare
Thank you very much for this work @sdp5 !!! |
Description
Though most of the dialects support geom_type ending with Z in SQL queries, it seems not working with SpatiaLite.
Hence replacing Z with a blank in SQL queries.
Added a test to cover this behaviour.
Checklist
This pull request is:
@adrien-berchet Please take an initial look, thanks!