<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>in python I would do it like this one:</p>
    <p><i>l = iface.activeLayer()</i><i><br>
      </i><i>if l.crs().authid() != "":</i><i><br>
      </i><i>    print(l.crs().authid ())</i><i><br>
      </i><i>else:</i><i><br>
      </i><i>    print("No projection")</i><br>
    </p>
    <div class="moz-cite-prefix">Am 13.10.2021 um 11:50 schrieb
      pierluigi de rosa:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAgsrZiRdh_TiRcC7exudsEGGU=uxixeHAUqtJHb07z8pU464g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Dear all,
        <div><br>
        </div>
        <div>mayble a very simple question.</div>
        <div>Is it possible to check quickly if a layer has a projected
          CRS or not?</div>
        <div>in QgsCoordinateReferenceSystem I have not found a method
          able to do that check.</div>
        <div>Thanks for your attention</div>
        <div>Pierluigi</div>
        <div><br>
        </div>
        <div>-- <br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">Ing. Pierluigi De Rosa (PhD in Earth
                      Science)</div>
                    <div dir="ltr">Contract Professor of Geographic
                      Information System at University of Perugia<br>
                      cel: 349755826<span><span dir="ltr">8</span></span>
                      / fax: 075 7823038<br>
                      skype: pierluigi.derosa </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant

---------------------------------------------
Schon gewusst?
In unserem Blog geben wir Tipps & Tricks zu
Open-Source-GIS-Software und berichten aus unserem Experten-Alltag:
<a class="moz-txt-link-freetext" href="https://wheregroup.com/blog/">https://wheregroup.com/blog/</a>
---------------------------------------------

WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany

Fon: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11

<a class="moz-txt-link-abbreviated" href="mailto:stefan.giese@wheregroup.com">stefan.giese@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885</pre>
  </body>
</html>