-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
"Ballpark Transform" warning when viewport (but not data!) is outside of Transformation area #45621
Comments
@floledermann I guess this happens because to trigger the warning are used the bounding boxes of the CRS of the layers and not the extent of the features. |
@gioman This is what I inferred from the behaviour, too. Although I want to point out that in the test case none of the layers has geometry outside the "area of use" of the CRS transformation. It seems to be entirely triggered by the bounds of the map viewport. As a short-term measure, the warning could be rephrased along the lines "Map viewport extends beyond the area for which the transformation from EPSG:X to EPSG:Y is valid. A ballpark transform would be used outside of this area". Such warning would need to be hidden again when zooming in, which is unfortunately not currently happening. The warning stays visible until dismissed by the user. The warning as it stands "Used a ballpark transform ..." is definitely wrong, as the ballpark transform is never applied to even a single coordinate pair in the described scenario. |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
I am not sure what further information I should provide on the issue. I have provided a description, screenshot and test project above, and tried to clarify remaining questions in my answer to @gioman above. The issue is very much still present. Of course it is not a critical bug, but still the warning is misleading and confusing. |
so warnings are not shown Fixes qgis#45621
so warnings are not shown Fixes #45621
so warnings are not shown Fixes #45621
so warnings are not shown Fixes #45621
What is the bug or the crash?
I have a layer that I want to be reprojected on the fly to my project CRS and whose features are wholly within the boundaries of the "area of use" of the selected coordinate transformation.
The reprojection works as expected as long as I keep the map view zoomed in on the reprojected layer's extent. However, when I zoom out the map viewport, I get a "Used a ballpark transform" warning in the orange bar on the top of the viewport. This happens even though there is no geometry in any layer outside the "area of use" of the on-the-fly transformation!
IMO this is a bug and can be very confusing to newcomers (I am using QGIS in teaching). If no geometry is reprojected outside of the area of use the ballpark transform should not kick in (which it doesn't) and the warning should not appear even when the map view is zoomed to outside the area of use.
Screenshot 1 - no warning upon opening the project:
![image](https://user-images.githubusercontent.com/95970/138440965-bbd45578-d67f-4903-9232-e49d30d848ac.png)
Screenshot 2 - ballpark transform warning when zooming out:
![image](https://user-images.githubusercontent.com/95970/138441084-ca8755f2-6d44-4295-aaef-f6b6c920cbc7.png)
Zip File with test project & data:
testcase_qgis.zip
Steps to reproduce the issue
Use the attached test project to reproduce.
Upon opening the project -> no warning
Upon zooming out -> ballpark transform warning
Versions
QGIS version
3.20.3-Odense
QGIS code revision
495fbae
Qt version
5.15.2
Python version
3.9.5
GDAL/OGR version
3.3.1
PROJ version
8.1.1
EPSG Registry database version
v10.028 (2021-07-07)
GEOS version
3.9.1-CAPI-1.14.2
SQLite version
3.35.2
PDAL version
2.3.0
PostgreSQL client version
13.0
SpatiaLite version
5.0.1
QWT version
6.1.3
QScintilla2 version
2.11.5
OS version
Windows 10 Version 1607
Active Python plugins
contour
openlayers_plugin
QuickOSM
db_manager
MetaSearch
processing
Supported QGIS version
Additional context
No response
The text was updated successfully, but these errors were encountered: