pyQGIS get CRS of a layer ie get the EPSG

vlayer_dp=vlayer.dataProvider()
vlayer_crs=vlayer_dp.crs()
vlayer_crs_str=vlayer_crs.authid()
vlayer_EPSG_int=int(vlayer_crs_str[5:])

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 7 = eleven