Bug report #14229

Raster in projected CRS is not rendered in geographic CRS if the extent exceeds -180,-90,180,90

Added by Radim Blazek over 3 years ago. Updated almost 2 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Rasters
Affected QGIS version:2.18.7 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:22227

Description

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

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

and consequently
https://github.com/qgis/QGIS/blob/27f1637f/src/core/raster/qgsrasterlayerrenderer.cpp#L85
tells "draw request outside view extent".

Associated revisions

Revision c09c96b0
Added by Even Rouault almost 2 years ago

Raster renderer: fix so that raster in projected CRS is not rendered in geographic CRS if the extent exceeds -180,-90,180,90 (fixes #14229)

Revision eefcb318
Added by Even Rouault almost 2 years ago

Raster renderer: fix so that raster in projected CRS is not rendered in geographic CRS if the extent exceeds -180,-90,180,90 (fixes #14229)

History

#1 Updated by Giovanni Manghi over 3 years ago

  • Target version changed from Future Release - High Priority to Version 2.14

#2 Updated by Giovanni Manghi over 2 years ago

  • Target version changed from Version 2.14 to Version 2.18
  • Affected QGIS version changed from master to 2.18.4

#3 Updated by Giovanni Manghi over 2 years ago

  • Regression? set to Yes

#4 Updated by Giovanni Manghi over 2 years ago

  • Priority changed from Severe/Regression to High

#5 Updated by Giovanni Manghi over 2 years ago

  • Easy fix? set to No

#6 Updated by Giovanni Manghi over 2 years ago

  • Description updated (diff)
  • Affected QGIS version changed from 2.18.4 to 2.18.7

#7 Updated by Even Rouault almost 2 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF