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
Raster resampling happens before map canvas rotation #23602
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Johannes Kroeger (Johannes Kroeger) This also affects OTF reprojection as shown in this image. I would update the title if I could.
|
Author Name: Giovanni Manghi (@gioman) End of life notice: QGIS 2.18 LTR Source: QGIS 3.4 has recently become our new Long Term Release (LTR) version. This is a major step in our history – a long term release version based on the massive updates, library upgrades and improvements that we carried out in the course of the 2.x to 3x upgrade cycle. We strongly encourage all users who are currently using QGIS 2.18 LTR as their preferred QGIS release to migrate to QGIS 3.4. This new LTR version will receive regular bugfixes for at least one year. It also includes hundreds of new functions, usability improvements, bugfixes, and other goodies. See the relevant changelogs for a good sampling of all the new features that have gone into version 3.4 Most plugins have been either migrated or incorporated into the core QGIS code base. We strongly discourage the continued use of QGIS 2.18 LTR as it is now officially unsupported, which means we’ll not provide any bug fix releases for it. You should also note that we intend to close all bug tickets referring to the now obsolete LTR version. Original reporters will receive a notification of the ticket closure and are encouraged to check whether the issue persists in the new LTR, in which case they should reopen the ticket. If you would like to better understand the QGIS release roadmap, check out our roadmap page! It outlines the schedule for upcoming releases and will help you plan your deployment of QGIS into an operational environment. The development of QGIS 3.4 LTR has been made possible by the work of hundreds of volunteers, by the investments of companies, professionals, and administrations, and by continuous donations and financial support from many of you. We sincerely thank you all and encourage you to collaborate and support the project even more, for the long term improvement and sustainability of the QGIS project.
|
This is still the case in 3.8, please re-open. Maybe there is no filtering applied to the map canvas in general after rotation? |
This is still valid on QGIS 3.22.3. |
The issue is that this resampling is done before the canvas rotation. The "resampling" of the rotation is not filtered and leads to jarring aliasing. A reduction in visual quality when rotating rasters is to be expected but it could be drastically reduced if it wasn't a nearest neighbor operation (I guess). |
Rotation of the canvas in QGIS is not involved at all in this issue. After you load a raster which was exported from a rotated image the issue appears also if the canvas is not rotated. It is the original raster which was rotated when exported, GDAL knows that from the world file and applies the appropriate transformation. |
No, I'm not complaining about export of rotated maps, I'm talking about display of rasters with rotated geotransform. I think it is #46262, which has been marked as duplicate of this (although it was also addressed in another old ticket). So maybe that one should be reopened if we want to keep the issues separate? |
Does activating "Early resampling" checkbox in the recent QGIS versions improves situation? |
There is almost no improvement in my example of rasters with rotated geotransform. |
Author Name: Johannes Kroeger (Johannes Kroeger)
Original Redmine Issue: 15679
Affected QGIS version: 2.16.3
Redmine category:unknown
If you use QGIS' canvas rotation feature and have raster images in your map, they will look much worse than intended.
It seems like the resampling is done before the rotation. The rotation of course leads to different neighborhood relationships between pixels so the quality degrades. Would it be possible to resample after rotating?
Attached is an example of the same area with Nearest Neighbor resampling as well as Average with 0° and 10° rotation applied. As you can see, the image quality in the 10° Average image looks not very good.
The text was updated successfully, but these errors were encountered: