Bug report #14229

Updated by Giovanni Manghi about 3 years ago

Raster in projected CRS is not rendered if OTFR is on, project is in geographic CRS and canvas extent exceeds -180,-90,180,90.



How to reproduce:

- set OTFR on

- set project CRS to EPSG:4326

- open qgis_sample_data/raster/landcover.img

Nothing is displayed until you zoom to area within -180,-90,180,90 covered by landcover.img



It is probably caused by

https://github.com/qgis/QGIS/blob/27f1637f/src/core/qgsmaprendererjob.cpp#L152

<pre>

extent = QgsRectangle( -DBL_MAX, -DBL_MAX, DBL_MAX, DBL_MAX );

</pre>

and consequently

https://github.com/qgis/QGIS/blob/27f1637f/src/core/raster/qgsrasterlayerrenderer.cpp#L85

tells "draw request outside view extent".

Back