Bug report #4347
raster and vector rendering mismatched by 1 pixel at some zoom levels
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||invalid|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||14284|
I'm not 100% sure if this counts as a bug:
Depending on the zoom level, a raster image and a vector with the same extent (created using gdaltindex) are not quite rendered in the same location. Usually they are out by 1 pixel, as in the attached screenshot, although the other day I saw 2 pixels.
When I first saw this I decided it was an issue with the raster rendering, not the vector rendering, but I can't remember why. Maybe because sometimes gaps are visible between adjacent raster layers or something.
Radim mentioned on the mailing list the other day that on-the-fly raster reprojection uses rounding if the difference is less than one pixel, so I thought it might be a problem with that, but it still shows up when not using OTF reprojection.