-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix PostGIS geography extent computation #57514
Conversation
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.
LGTM!
It's actually not good as it returns an extent of |
strange behavior! That is really strange no one has ever noticed this issue.... |
Indeed, I guess we could resort back to give full planet extent for estimation and use a cast to geometry for full computation, until the issue is fixed upstream |
With 69fffa0 we never estimate but always compute, as if stats were never gathered. It works correctly for me |
69fffa0
to
17f7e1e
Compare
17f7e1e
to
d9cbc1a
Compare
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.
LGTM!
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
a8468d3
to
d702056
Compare
d702056
to
efae21a
Compare
aa5e200
to
7acbaf7
Compare
This PR is flagged with require tests. I agree that a test would be nice. |
7acbaf7
to
dcf1e6c
Compare
Test added |
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.
One minor change requested, then it's good to go
I confirm the new test is effective at catching the bug as I tried it against 3.34 and got this:
|
Do not estimate extent with geography spatial type, because ST_EstimatedExtent returns bogus data, see: https://trac.osgeo.org/postgis/ticket/5734 Closes qgisGH-30294
- Accept empty (not-null) extent as a valid answer - Drop not more needed workarounds for corner cases - Make the code hopefully more readble - Fix a spurious COMMIT out of transaction
Also const-correct QgsPostgresProvider::setExtent
85190c7
to
f5fc285
Compare
Closes GH-30294