<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Devs,</p>
    <p>Came across the following message while opening a QGIS project
      with more than 300 layers:</p>
    <p><img src="cid:part1.5783AB24.D69FBDE5@geoproc.com" alt=""></p>
    <p>Problem is that I could not find which layer posed problem!</p>
    <p>I've tried a little python script, below, to show the crs of all
      layers, but it turned out that most of them did not have an
      intrinsic crs but a QGIS set crs (in the QGZ file). So the script
      failed on those layers, and I was left to go one layer by one
      layer to find the only one with no intrinsic or explicit crs: the
      one generating the error message.</p>
    <p>It would be most useful to get the name of the offending layer in
      the message.</p>
    <p> Even the log did not help, merely repeating the same message!<br>
    </p>
    <p><font face="monospace">for layer in
        iface.layerTreeView().selectedLayers():<br>
            # Get EPSG code from layer's CRS<br>
            dp = layer.dataProvider()<br>
            thecrs = dp.crs()<br>
            epsg = thecrs.authid()[5:]<br>
            # Generate crs suffix for layer name<br>
            suff = ' (' + epsg + ')' if epsg.strip() != '' else crstip<br>
            print(suff)</font><br>
    </p>
    <p>Thanks for this great piece of software.</p>
    <p>Regards,<br>
      Benoit de Cabissole</p>
    <p><br>
    </p>
  </body>
</html>