Bug report #18533

Qt-tab in Log Messages filled with "No QgsCoordinateTransformContext context set for transform" using xyz layers

Added by Richard Duivenvoorde over 6 years ago. Updated over 6 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Projection Support
Affected QGIS version:3.1(master) Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26421

Description

Using our default OSM/OpenStreetMap xyz layer, it seems to me that for EVERY tile that is requested, QGIS writes a log line:

"No QgsCoordinateTransformContext context set for transform"

, shown in the Log Messages panel in the Qt tab.

This hides other messages, for example when programming a python plugin?

Can this be silenced (for xyzlayers?) Or is it something being called deeper into rendering contexts?

2018-03-25T11:18:08     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:09     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:29     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:29     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:30     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:30     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:30     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:30     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:30     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:30     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:31     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:31     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:31     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:31     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:31     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:31     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:32     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:32     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:32     WARNING    No QgsCoordinateTransformContext context set for transform
2018-03-25T11:18:32     WARNING    No QgsCoordinateTransformContext context set for transform

History

#1 Updated by Nyall Dawson over 6 years ago

It's only shown on debug builds, and is a warning that there's code which needs to be fixed. The way to silence it (properly) is to fix XYZ layers and ensure that they correctly use any datum transforms which are set for the project.

#2 Updated by Richard Duivenvoorde over 6 years ago

Ok, thanks Nyall, will have a look at it myself later.

#3 Updated by Richard Duivenvoorde over 6 years ago

I created a Pull Request, being discussed here: https://github.com/qgis/QGIS/pull/6681

Also available in: Atom PDF