[QGIS-Developer] projected CRS

Stefan Giese (WhereGroup) stefan.giese at wheregroup.com
Wed Oct 13 03:10:12 PDT 2021


in python I would do it like this one:

/l = iface.activeLayer()//
//if l.crs().authid() != ""://
//    print(l.crs().authid ())//
//else://
//    print("No projection")/

Am 13.10.2021 um 11:50 schrieb pierluigi de rosa:
> Dear all,
>
> mayble a very simple question.
> Is it possible to check quickly if a layer has a projected CRS or not?
> in QgsCoordinateReferenceSystem I have not found a method able to do 
> that check.
> Thanks for your attention
> Pierluigi
>
> -- 
> Ing. Pierluigi De Rosa (PhD in Earth Science)
> Contract Professor of Geographic Information System at University of 
> Perugia
> cel: 3497558268 / fax: 075 7823038
> skype: pierluigi.derosa
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
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:
https://wheregroup.com/blog/
---------------------------------------------

WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany

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

stefan.giese at wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20211013/b1cd3fac/attachment-0001.html>


More information about the QGIS-Developer mailing list